Defines | |
| #define | IRPLIB_STD_MAXRADIUS 2.0 |
Functions | |
| static double | irplib_great_circle_dist (double ra1, double dec1, double ra2, double dec2) |
| Compute the great-circle distance between two points on a sphere. | |
| static int | irplib_std_setactive (const char *catalog) |
| Sets the active catalogs for search. | |
| static const irplib_irstd * | irplib_std_get_closest_star (double ra_d, double dec_d) |
| Find the closest star to a given position. | |
| irplib_irstd * | irplib_std_get_mag_one_cat (double ra, double dec, irplib_band band, const char *cat, double *mag) |
| Find the closest star from one catalog if the mag is known. | |
| cpl_vector * | irplib_std_get_conversion (const cpl_bivector *spec, double dit, double surface, double gain, double mag) |
| Get the conversion. | |
| cpl_vector * | irplib_std_get_mag_zero (const cpl_bivector *sed, const cpl_vector *waves, double cent_wl) |
| Get the 0 magnitude spectrum. | |
| cpl_bivector * | irplib_std_get_sed (const char *seds_file, const char *sptype) |
| Get the SED. | |
| irplib_irstd * | irplib_std_get_type (double ra, double dec) |
| Find the closest star from the catalog where the type is known. | |
| irplib_irstd * | irplib_std_get_mag (double ra, double dec, irplib_band band, double *mag) |
| Find the closest star from the catalog where the mag is known. | |
| const char * | irplib_std_band_name (irplib_band band) |
| Return a band name. | |
| const char * | irplib_std_catalog_name (int cat_id) |
| Return a catalog name. | |
| const char * | irplib_std_get_name (const irplib_irstd *self) |
| Get the name of the given standard star. | |
| const char * | irplib_std_get_type_spectral (const irplib_irstd *self) |
| Get the spectral type of the given standard star. | |
| const char * | irplib_std_get_catalog (const irplib_irstd *self) |
| Get the catalog of the given standard star. | |
|
||||||||||||||||||||
|
Compute the great-circle distance between two points on a sphere.
Definition at line 819 of file irplib_std.c. Referenced by irplib_std_get_closest_star(). |
|
|
Sets the active catalogs for search.
If catalog name is "none", all catalogs are deactivated. If catalog name is "all", all catalogs are activated. If catalog name is NULL, the number of active stars in list is computed and returned. Definition at line 692 of file irplib_std.c. Referenced by irplib_std_get_mag(), irplib_std_get_mag_one_cat(), and irplib_std_get_type(). |
|
||||||||||||
|
Find the closest star to a given position.
The returned star object is a pointer to the found star in the internal irstd_list structure, thus must not be freed. Definition at line 761 of file irplib_std.c. References irplib_great_circle_dist(), and IRPLIB_STD_MAXRADIUS. Referenced by irplib_std_get_mag(), irplib_std_get_mag_one_cat(), and irplib_std_get_type(). |
|
||||||||||||||||||||||||
|
Find the closest star from one catalog if the mag is known.
Definition at line 82 of file irplib_std.c. References irplib_std_get_closest_star(), and irplib_std_setactive(). |
|
||||||||||||||||||||||||
|
Get the conversion.
Definition at line 169 of file irplib_std.c. |
|
||||||||||||||||
|
Get the 0 magnitude spectrum.
Definition at line 228 of file irplib_std.c. |
|
||||||||||||
|
Get the SED.
Definition at line 331 of file irplib_std.c. |
|
||||||||||||
|
Find the closest star from the catalog where the type is known.
Definition at line 402 of file irplib_std.c. References irplib_std_get_closest_star(), and irplib_std_setactive(). |
|
||||||||||||||||||||
|
Find the closest star from the catalog where the mag is known.
Definition at line 459 of file irplib_std.c. References irplib_std_get_closest_star(), and irplib_std_setactive(). |
|
|
Return a band name.
Definition at line 586 of file irplib_std.c. |
|
|
Return a catalog name.
Definition at line 619 of file irplib_std.c. |
|
|
Get the name of the given standard star.
Definition at line 633 of file irplib_std.c. |
|
|
Get the spectral type of the given standard star.
Definition at line 649 of file irplib_std.c. |
|
|
Get the catalog of the given standard star.
Definition at line 666 of file irplib_std.c. |
1.4.6