Functions for standard stars


Functions

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.

Function Documentation

const char* irplib_std_band_name irplib_band  band  ) 
 

Return a band name.

Parameters:
band a BB
Returns:
1 pointer to a static band name.

Definition at line 573 of file irplib_std.c.

const char* irplib_std_catalog_name int  cat_id  ) 
 

Return a catalog name.

Parameters:
cat_id Catalog Id as stored in the star source field
Returns:
1 pointer to a static catalog name.
This function is useful to get the static catalog name supported by the current internal database. Do not modify or try to free the returned string. Since it is static, this would cause a segfault.

Definition at line 606 of file irplib_std.c.

const char* irplib_std_get_catalog const irplib_irstd *  self  ) 
 

Get the catalog of the given standard star.

Parameters:
self The standard star
Returns:
The catalog name or NULL on NULL input

Definition at line 653 of file irplib_std.c.

cpl_vector* irplib_std_get_conversion const cpl_bivector *  spec,
double  dit,
double  surface,
double  gain,
double  mag
 

Get the conversion.

Parameters:
spec the extracted spectrum
dit the DIT (in sec)
surface the surface of the miror (in sq cm)
gain the gain of the instrument (ISAAC=4.5, SINFONI=2.42)
mag the star magnitude
Returns:
the newly allocated conversion or NULL in error case
conversion(wave) = (spec * gain * 10^(mag/2.5) * h * c) / (dit * surface * dispersion * wave)

Definition at line 156 of file irplib_std.c.

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.

Parameters:
ra Right ascension {in degrees}.
dec Declination {in degrees}.
band Band in which we want the magnitude
mag The magnitude
Returns:
Pointer to one standard star object
Note:
FIXME: Redeclare as const

Definition at line 446 of file irplib_std.c.

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.

Parameters:
ra Right ascension {in degrees}.
dec Declination {in degrees}.
band Band in which we want the magnitude
cat The catalog to search in (cannot be "all")
mag The magnitude
Returns:
Pointer to one standard star object
Note:
FIXME: Redeclare as const

Definition at line 74 of file irplib_std.c.

cpl_vector* irplib_std_get_mag_zero const cpl_bivector *  sed,
const cpl_vector *  waves,
double  cent_wl
 

Get the 0 magnitude spectrum.

Parameters:
sed the SED in angstroms / ergs/s/cm^2/Angstrom
waves the wavelengths in angstroms
cent_wl the central wavelength in microns
Returns:
the newly allocated spectrum or NULL in error case

Definition at line 215 of file irplib_std.c.

const char* irplib_std_get_name const irplib_irstd *  self  ) 
 

Get the name of the given standard star.

Parameters:
self The standard star
Returns:
The star name or NULL on NULL input

Definition at line 620 of file irplib_std.c.

cpl_bivector* irplib_std_get_sed const char *  seds_file,
const char *  sptype
 

Get the SED.

Parameters:
seds_file the table file name
sptype the requested spectral type
Returns:
the newly allocated SED or NULL in error case
wavelength in Angstroms SED in

Definition at line 318 of file irplib_std.c.

irplib_irstd* irplib_std_get_type double  ra,
double  dec
 

Find the closest star from the catalog where the type is known.

Parameters:
ra Right ascension {in degrees}.
dec Declination {in degrees}.
Returns:
Pointer to one standard star object
Note:
FIXME: Redeclare as const

Definition at line 389 of file irplib_std.c.

const char* irplib_std_get_type_spectral const irplib_irstd *  self  ) 
 

Get the spectral type of the given standard star.

Parameters:
self The standard star
Returns:
The spectral type or NULL on NULL input

Definition at line 636 of file irplib_std.c.


Generated on Wed Jan 17 08:33:45 2007 for SINFONI Pipeline Reference Manual by  doxygen 1.4.4