![]() |
Geo Stars Library
0.9.3
Geodetic and Astrometry library
|
This file contains the wrapper routines to interface to the Novas (Naval Observatory Vector Astrometry Subroutine) Library. More...

Go to the source code of this file.
Macros | |
| #define | MAJOR_PLANET 0 |
| #define | BODY_EARTH 3 |
| #define | BODY_SUN 10 |
| #define | REDUCED_ACC 1 |
Functions | |
| int | geoSunAzElNow (GEO_LOCATION *loc, double *az, double *el) |
| this routine uses ANSI C time routines to obtain the current time and then get the az and el of the sun at this location More... | |
| double | geoSunNowEl (double lat, double lon, double hgt) |
| this routine uses the location and current time to get the elevation of the sun at this location More... | |
| double | geoSunNowAz (double lat, double lon, double hgt) |
| this routine uses the location and current time to get the azimuth of the sun at this location More... | |
| int | geoSunAzEltm (GEO_LOCATION *loc, double *az, double *el, struct tm *newtime) |
| this routine ingests an ANSI C time structure and then gets the az and el of the sun at this location based on this time. More... | |
| int | geoGettm (int part) |
| int | geoSunAzElJD (GEO_LOCATION *loc, double *az, double *el, double tjd_now) |
| This routine uses a previously determined Julian date and then gets the Az and El of the sun at this location based on the Julian date. More... | |
| int | geoGetSunError (void) |
Variables | |
| int | geoSunError = 0 |
| struct tm | tError |
This file contains the wrapper routines to interface to the Novas (Naval Observatory Vector Astrometry Subroutine) Library.
http://aa.usno.navy.mil/software/novas/novas_info.html
Definition in file geoAstro.c.
| #define BODY_EARTH 3 |
Definition at line 129 of file geoAstro.c.
| #define BODY_SUN 10 |
Definition at line 130 of file geoAstro.c.
Referenced by geoSunAzElJD().
| #define MAJOR_PLANET 0 |
Definition at line 128 of file geoAstro.c.
Referenced by geoSunAzElJD().
| #define REDUCED_ACC 1 |
Definition at line 131 of file geoAstro.c.
Referenced by geoSunAzElJD().
| int geoGetSunError | ( | void | ) |
Definition at line 198 of file geoAstro.c.
References geoSunError.
| int geoGettm | ( | int | part) |
| int geoSunAzElJD | ( | GEO_LOCATION * | loc, |
| double * | az, | ||
| double * | el, | ||
| double | tjd_now | ||
| ) |
This routine uses a previously determined Julian date and then gets the Az and El of the sun at this location based on the Julian date.
| GEO_LOCATION | *loc : Location structure |
| double | *az : Azimuth in decimal degrees |
| double | *el : Elevation in decimal degrees |
| GEO_OK | on success |
| GEO_ERROR | on error |
Definition at line 147 of file geoAstro.c.
References BODY_SUN, GEO_ERROR, GEO_OK, geoSunError, GEO_LOCATION::hgt, GEO_LOCATION::lat, GEO_LOCATION::lon, MAJOR_PLANET, and REDUCED_ACC.
Referenced by geoSunAzEltm().
| int geoSunAzElNow | ( | GEO_LOCATION * | loc, |
| double * | az, | ||
| double * | el | ||
| ) |
this routine uses ANSI C time routines to obtain the current time and then get the az and el of the sun at this location
| GEO_LOCATION | *loc : Location structure |
| double | *az : Azimuth in decimal degrees |
| double | *el : Elevation in decimal degrees |
| GEO_OK | on success |
| GEO_ERROR | on error |
Definition at line 31 of file geoAstro.c.
References geoSunAzEltm().
Referenced by geoSunNowAz(), and geoSunNowEl().

| int geoSunAzEltm | ( | GEO_LOCATION * | loc, |
| double * | az, | ||
| double * | el, | ||
| struct tm * | newtime | ||
| ) |
this routine ingests an ANSI C time structure and then gets the az and el of the sun at this location based on this time.
| GEO_LOCATION | *loc : Location structure |
| double | *az : Azimuth in decimal degrees |
| double | *el : Elevation in decimal degrees |
| GEO_OK | on success |
| GEO_ERROR | on error |
Definition at line 98 of file geoAstro.c.
References geoSunAzElJD(), and tError.
Referenced by geoSunAzElNow().

| double geoSunNowAz | ( | double | lat, |
| double | lon, | ||
| double | hgt | ||
| ) |
this routine uses the location and current time to get the azimuth of the sun at this location
| double | lat : Latitude in degrees |
| double | lon : Longitude in degrees |
| double | hgt : Height in meters |
| double | : Azimuth in decimal degrees |
Definition at line 75 of file geoAstro.c.
References GEO_DATUM_DEFAULT, geoInitLocation(), and geoSunAzElNow().

| double geoSunNowEl | ( | double | lat, |
| double | lon, | ||
| double | hgt | ||
| ) |
this routine uses the location and current time to get the elevation of the sun at this location
| double | lat : Latitude in degrees |
| double | lon : Longitude in degrees |
| double | hgt : Height in meters |
| double | : Elevation in decimal degrees |
Definition at line 54 of file geoAstro.c.
References GEO_DATUM_DEFAULT, geoInitLocation(), and geoSunAzElNow().

| int geoSunError = 0 |
Definition at line 15 of file geoAstro.c.
Referenced by geoGetSunError(), and geoSunAzElJD().
| struct tm tError |
Definition at line 16 of file geoAstro.c.
Referenced by geoGettm(), and geoSunAzEltm().
1.8.4