#include <cpl.h>
Go to the source code of this file.
Functions | |
void | xsh_load_ref_table (cpl_frameset *frames, double dRA, double dDEC, double EPSILON, xsh_instrument *instrument, cpl_table **pptable) |
load reference table | |
cpl_frame * | xsh_utils_efficiency (cpl_frameset *frames, double dGain, double dEpsilon, double aimprim, xsh_instrument *inst, const char *col_name_atm_wave, const char *col_name_atm_abs, const char *col_name_ref_wave, const char *col_name_ref_flux, const char *col_name_ref_bin, const char *col_name_obj_wave, const char *col_name_obj_flux) |
Compute efficiency. | |
cpl_table * | xsh_utils_efficiency_internal (cpl_table *tbl_obj_spectrum, cpl_table *tbl_atmext, cpl_table *tbl_ref, double exptime, double airmass, double aimprim, double gain, int biny, double src2ref_wave_sampling, const char *col_name_atm_wave, const char *col_name_atm_abs, const char *col_name_ref_wave, const char *col_name_ref_flux, const char *col_name_ref_bin, const char *col_name_obj_wave, const char *col_name_obj_flux, int *ntot, int *nclip) |
Compute efficiency. | |
cpl_frame * | xsh_efficiency_compute (cpl_frame *frm_sci, cpl_frame *frm_cat, cpl_frame *frm_atmext, xsh_instrument *instrument) |
computes efficiency | |
cpl_frame * | xsh_catalog_extract_spectrum_frame (cpl_frame *frm_cat, cpl_frame *frm_sci) |
extract spectrum | |
cpl_error_code | xsh_parse_catalog_std_stars (cpl_frame *cat, double dRA, double dDEC, double EPSILON, cpl_table **pptable) |
parse referece std stars catalog | |
void | xsh_frame_sci_get_ra_dec_airmass (cpl_frame *frm_sci, double *ra, double *dec, double *airmass) |
get RA, DEC, airmass (mean) of a frame | |
Variables | |
static const double | STAR_MATCH_DEPSILON = 0.0166667 |
cpl_frame* xsh_catalog_extract_spectrum_frame | ( | cpl_frame * | frm_cat, | |
cpl_frame * | frm_sci | |||
) |
extract spectrum
frm_cat | catalog frame | |
frm_sci | science frame |
Definition at line 723 of file xsh_utils_efficiency.c.
References check, COL_NAME_BINWIDTH_REF, COL_NAME_FLUX_REF, COL_NAME_WAVE_REF, STAR_MATCH_DEPSILON, XSH_ASSURE_NOT_NULL_MSG, xsh_frame_product(), xsh_frame_sci_get_ra_dec_airmass(), and xsh_parse_catalog_std_stars().
cpl_frame* xsh_efficiency_compute | ( | cpl_frame * | frm_sci, | |
cpl_frame * | frm_cat, | |||
cpl_frame * | frm_atmext, | |||
xsh_instrument * | instrument | |||
) |
computes efficiency
frm_sci | science frame | |
frm_cat | catalog frame | |
frm_atmext | atmos[heric extinction frame | |
instrument | instrument arm setting |
Definition at line 764 of file xsh_utils_efficiency.c.
References biny, check, COL_NAME_ABS_ATMDISP, COL_NAME_BINWIDTH_REF, COL_NAME_FLUX_REF, COL_NAME_INT_OBJ, COL_NAME_ORD_OBJ, COL_NAME_WAVE_ATMDISP, COL_NAME_WAVE_OBJ, COL_NAME_WAVE_REF, exptime, rec_profile, STAR_MATCH_DEPSILON, XSH_ASSURE_NOT_NULL_MSG, xsh_frame_product(), xsh_frame_sci_get_gain_airmass_exptime_naxis1_biny(), xsh_frame_sci_get_ra_dec_airmass(), xsh_free_image(), xsh_free_propertylist(), xsh_free_table(), xsh_free_vector(), xsh_instrument_arm_tostring(), xsh_instrument_mode_tostring(), xsh_msg, xsh_msg_dbg_medium, xsh_msg_error, xsh_parse_catalog_std_stars(), xsh_pfits_get_cdelt1(), xsh_pfits_get_crval1(), xsh_pfits_set_qc_eff_fclip(), xsh_pfits_set_qc_eff_nclip(), XSH_QC_EFF_MED_ORD, XSH_QC_EFF_PEAK_ORD, and xsh_utils_efficiency_internal().
Referenced by xsh_respon_slit_nod(), xsh_respon_slit_offset(), xsh_respon_slit_stare(), and xsh_util_efficiency1d().
void xsh_frame_sci_get_ra_dec_airmass | ( | cpl_frame * | frm_sci, | |
double * | ra, | |||
double * | dec, | |||
double * | airmass | |||
) |
get RA, DEC, airmass (mean) of a frame
frm_sci | input frame | |
ra | right ascension | |
dec | declination | |
airmass | airmass (mean) |
Definition at line 660 of file xsh_utils_efficiency.c.
References check, xsh_free_propertylist(), xsh_pfits_get_airm_mean(), xsh_pfits_get_dec(), and xsh_pfits_get_ra().
Referenced by xsh_catalog_extract_spectrum_frame(), xsh_compute_response(), xsh_compute_response_ord(), and xsh_efficiency_compute().
void xsh_load_ref_table | ( | cpl_frameset * | frames, | |
double | dRA, | |||
double | dDEC, | |||
double | EPSILON, | |||
xsh_instrument * | instrument, | |||
cpl_table ** | pptable | |||
) |
load reference table
frames | input frames list | |
dRA | Right Ascension | |
dDEC | Declination | |
EPSILON | tolerance to find ref spectra on catalog on (ra,dec) | |
instrument | xsh instrument | |
pptable | pointer to new table |
Definition at line 104 of file xsh_utils_efficiency.c.
References check, star_index_get(), star_index_load(), xsh_find_frame_with_tag(), XSH_FLUX_STD_CAT, XSH_FLUX_STD_TAB, and xsh_msg.
Referenced by xsh_utils_efficiency().
cpl_error_code xsh_parse_catalog_std_stars | ( | cpl_frame * | cat, | |
double | dRA, | |||
double | dDEC, | |||
double | EPSILON, | |||
cpl_table ** | pptable | |||
) |
parse referece std stars catalog
cat | input frame catalog | |
dRA | Right Ascension | |
dDEC | Declination | |
EPSILON | tolerance to find ref spectra on catalog on (ra,dec) | |
pptable | pointer to new table |
Definition at line 177 of file xsh_utils_efficiency.c.
References check, star_index_delete(), star_index_get(), star_index_load(), XSH_ASSURE_NOT_NULL_MSG, and xsh_msg.
Referenced by xsh_catalog_extract_spectrum_frame(), xsh_compute_response(), xsh_compute_response_ord(), and xsh_efficiency_compute().
cpl_frame* xsh_utils_efficiency | ( | cpl_frameset * | frames, | |
double | dGain, | |||
double | dEpsilon, | |||
double | aimprim, | |||
xsh_instrument * | inst, | |||
const char * | col_name_atm_wave, | |||
const char * | col_name_atm_abs, | |||
const char * | col_name_ref_wave, | |||
const char * | col_name_ref_flux, | |||
const char * | col_name_ref_bin, | |||
const char * | col_name_obj_wave, | |||
const char * | col_name_obj_flux | |||
) |
Compute efficiency.
frames | input frameset | |
dGain | detector's gain value | |
dEpsilon | tolerance to find ref spectra on catalog on (ra,dec) | |
aimprim | airmass | |
inst | instrument (arm) setting | |
col_name_atm_wave | atmospheric extinction table wave column name | |
col_name_atm_abs | atmospheric extinction table absorption column name | |
col_name_ref_wave | reference flux std table wave column name | |
col_name_ref_flux | reference flux std table flux column name | |
col_name_ref_bin | reference flux std table sampling bin value | |
col_name_obj_wave | observed std table wave column name | |
col_name_obj_flux | observed std table flux column name |
Definition at line 278 of file xsh_utils_efficiency.c.
References check, exptime, FRM_EXTCOEFF_TAB, xsh_find_frame_with_tag(), xsh_frame_product(), xsh_free_propertylist(), xsh_free_table(), xsh_get_std_obs_values(), xsh_instrument_arm_tostring(), xsh_load_ref_table(), XSH_STD_FLUX_SLIT_STARE_ORDER1D, and xsh_utils_efficiency_internal().
cpl_table* xsh_utils_efficiency_internal | ( | cpl_table * | tbl_obj_spectrum, | |
cpl_table * | tbl_atmext, | |||
cpl_table * | tbl_ref, | |||
double | exptime, | |||
double | airmass, | |||
double | aimprim, | |||
double | gain, | |||
int | biny, | |||
double | src2ref_wave_sampling, | |||
const char * | col_name_atm_wave, | |||
const char * | col_name_atm_abs, | |||
const char * | col_name_ref_wave, | |||
const char * | col_name_ref_flux, | |||
const char * | col_name_ref_bin, | |||
const char * | col_name_obj_wave, | |||
const char * | col_name_obj_flux, | |||
int * | ntot, | |||
int * | nclip | |||
) |
Compute efficiency.
tbl_obj_spectrum | input object spectrum | |
tbl_atmext | input atmospheric extinction table | |
tbl_ref | input reference flux STD table | |
exptime | input exposure time | |
airmass | input observed frame airmass | |
aimprim | input airmass corrective factor | |
gain | input gain | |
biny | bin on Y (spatial) direction | |
src2ref_wave_sampling | input cnversion factor to pass from src 2 ref units | |
col_name_atm_wave | atmospheric extinction table wave column name | |
col_name_atm_abs | atmospheric extinction table absorption column name | |
col_name_ref_wave | reference flux std table wave column name | |
col_name_ref_flux | reference flux std table flux column name | |
col_name_ref_bin | reference flux std table bin value | |
col_name_obj_wave | observed std table wave column name | |
col_name_obj_flux | observed std table flux column name |
Definition at line 413 of file xsh_utils_efficiency.c.
References check, COL_NAME_COR, COL_NAME_EPHOT, COL_NAME_EXT, COL_NAME_ORD_OBJ, COL_NAME_REF, COL_NAME_SRC_COR, COL_NAME_SRC_EFF, irplib_isinf(), kappa, TEL_AREA, xsh_column_to_double(), xsh_create_column_double(), xsh_free_table(), xsh_msg_dbg_medium, and xsh_table_interpolate().
Referenced by xsh_efficiency_compute(), and xsh_utils_efficiency().
const double STAR_MATCH_DEPSILON = 0.0166667 [static] |
Definition at line 30 of file xsh_utils_efficiency.h.
Referenced by xsh_catalog_extract_spectrum_frame(), xsh_compute_response(), xsh_compute_response_ord(), and xsh_efficiency_compute().