28 #ifndef IRPLIB_STDSTAR_H
29 #define IRPLIB_STDSTAR_H
41 #define IRPLIB_STDSTAR_STAR_COL "STARS"
42 #define IRPLIB_STDSTAR_TYPE_COL "SP_TYPE"
43 #define IRPLIB_STDSTAR_RA_COL "RA"
44 #define IRPLIB_STDSTAR_DEC_COL "DEC"
45 #define IRPLIB_STDSTAR_CAT_COL "CATALOG"
49 #define IRPLIB_STDSTAR_MAXDIST 2.0
52 #define IRPLIB_STDSTAR_NOMAG 99.0
55 #define IRPLIB_STDSTAR_LIMIT (IRPLIB_STDSTAR_NOMAG-1.0)
63 const char *,
const char *,
const char *,
64 const char *,
const char *,
65 cpl_table * (*)(
const char *));
72 const char *,
double *,
char **,
char **,
char **,
73 double *,
double * ,
double);
77 const cpl_vector *,
double);
cpl_vector * irplib_stdstar_get_conversion(const cpl_bivector *, double, double, double, double)
Get the conversion.
cpl_error_code irplib_stdstar_check_columns_exist(const cpl_table *)
Check that the table has the relevant columns of a stdstar table.
int irplib_stdstar_select_stars_dist(cpl_table *, double, double, double)
Select the stars that are within a given distance.
int irplib_stdstar_find_closest(const cpl_table *, double, double)
Find the closest star.
cpl_vector * irplib_stdstar_get_mag_zero(const cpl_bivector *, const cpl_vector *, double)
Get the 0 magnitude spectrum.
cpl_bivector * irplib_stdstar_get_sed(const char *, const char *)
Get the SED.
int irplib_stdstar_select_stars_mag(cpl_table *, const char *)
Select the stars that have a known magnitude.
cpl_error_code irplib_stdstar_write_catalogs(cpl_frameset *set_in, const cpl_frameset *set_raw, const char *recipe_name, const char *pro_cat, const char *pro_type, const char *package_name, const char *ins_name, cpl_table *(*convert_ascii_table)(const char *))
Write the ASCII catalogs as FITS files.
cpl_table * irplib_stdstar_load_catalog(const char *, const char *)
Load the FITS catalog in a table.
cpl_error_code irplib_stdstar_find_star(const char *, double, double, const char *, const char *, double *, char **, char **, char **, double *, double *, double)
Find the closest star to ra, dec in the catalog.