![]() |
SuperNOVAS C API v1.8
High-precision C/C++ astrometry library
|
Macros | |
| #define | IERS_DATACENTER "datacenter.iers.org" |
| IERS EOP server name. | |
Functions | |
| int | novas_fetch_eop (double jd, long timeout_millis, novas_eop *eop) |
| Obtains interpolated Earth Orientation Parameter data from the International Earth Rotation and Reference Systems Service (IERS). | |
| int | novas_fetch_eop_unix (time_t t, long timeout_millis, novas_eop *eop) |
| Obtains interpolated Earth Orientation Parameter data from the International Earth Rotation and Reference Systems Service (IERS) around the current system time, using the rapid service data (finals.all). | |
| int | novas_get_eop_itrf_year (enum novas_eop_series series) |
| Returns the ITRF realization year for a given IERS Earth Orientation Parameter (EOP) series. | |
| const char * | novas_get_eop_url (enum novas_eop_series series) |
| Returns the URL currently configured for a given IERS Earth Orientation Parameter (EOP) series. | |
| int | novas_is_auto_fetch_eop () |
| Checks if automatic fetching of Earth Orientation Parameter values from IERS is allowed. | |
| int | novas_leap_for_jd (double jd_utc) |
| Returns the leap seconds for the given (UTC-based) Julian date. | |
| int | novas_lookup_leap (time_t t) |
| Returns the leap seconds for the given UNIX timestamp. | |
| void | novas_reset_eop () |
| Releases resources used by URL handles used for obtaining Earth Orientation Parameter (EOP) data from the International Earth Rotation and Reference Systems Service (IERS), including the leap seconds list supplied earlier or obtained from IERS. | |
| int | novas_set_auto_fetch_eop (int enabled) |
| Disable or Re-enabled the automatic fetching of Earth Orientation Parameter values from IERS, when these are left undefined (NAN) when initializing astrometric time or observing frame instances. | |
| int | novas_set_eop_url (enum novas_eop_series series, int itrf_year, const char *url) |
| Specify a URL to use for a given IERS Earth Orientation Parameter (EOP) series. | |
| int | novas_set_leap_list (const char *filename) |
| Obsoleted function to specify a file containing the leap seconds list. | |
Functions to obtain and manage Earth Orientation data from the International Earth Rotation and Reference Systems Service (IERS) via HTTPS, or using other (remote or local) URLs.
The functions in this module are generally thread-safe. That is, you may call all functions from concurrent threads without data corruption. However, note that the EOP resources (URLs and/or local files), and the setting that enables/disables automatic fetching, are global settings. Thus, changing these in one thread will affect subsequent EOP fetch calls in other threads also.
| #define IERS_DATACENTER "datacenter.iers.org" |
IERS EOP server name.
| int novas_set_leap_list | ( | const char * | filename | ) |
Obsoleted function to specify a file containing the leap seconds list.
There will be no more leap seconds as of 20 May 2027, so the final list of leap seconds is now hardcoded into SuperNOVAS as of v1.8. There will be leap hours instead, perhaps, in the distant future, but not for some millenia. If someone still uses SuperNOVAS then, well, they must make some modifications to handle it then...
REFERENCES:
| filename | unused |
References NOVAS_DEBUG_EXTRA, and novas_get_debug_mode().
Referenced by novas_set_eop_url().