00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef XSH_SINFONI_SINFO_UTL_EFFICIENCY_H_
00027 #define XSH_SINFONI_SINFO_UTL_EFFICIENCY_H_
00028 #include <cpl.h>
00029
00030 static const double STAR_MATCH_DEPSILON=0.0166667;
00031 void
00032 xsh_load_ref_table(cpl_frameset* frames,
00033 double dRA,
00034 double dDEC,
00035 double EPSILON,
00036 xsh_instrument* instrument,
00037 cpl_table** pptable);
00038
00039
00040
00041 cpl_frame*
00042 xsh_utils_efficiency(
00043 cpl_frameset * frames,
00044 double dGain,
00045 double dEpsilon,
00046 double aimprim,
00047 xsh_instrument* inst,
00048 const char* col_name_atm_wave,
00049 const char* col_name_atm_abs,
00050 const char* col_name_ref_wave,
00051 const char* col_name_ref_flux,
00052 const char* col_name_ref_bin,
00053 const char* col_name_obj_wave,
00054 const char* col_name_obj_flux
00055 );
00056
00057 cpl_table*
00058 xsh_utils_efficiency_internal(
00059 cpl_table* tbl_obj_spectrum,
00060 cpl_table* tbl_atmext,
00061 cpl_table* tbl_ref,
00062 double exptime,
00063 double airmass,
00064 double aimprim,
00065 double gain,
00066 int biny,
00067 double src2ref_wave_sampling,
00068 const char* col_name_atm_wave,
00069 const char* col_name_atm_abs,
00070 const char* col_name_ref_wave,
00071 const char* col_name_ref_flux,
00072 const char* col_name_ref_bin,
00073 const char* col_name_obj_wave,
00074 const char* col_name_obj_flux,
00075 int* ntot, int* nclip
00076 );
00077
00078
00079
00080 cpl_frame*
00081 xsh_efficiency_compute(cpl_frame* frm_sci,
00082 cpl_frame* frm_cat,
00083 cpl_frame* frm_atmext,
00084 xsh_instrument* instrument);
00085
00086 cpl_frame*
00087 xsh_catalog_extract_spectrum_frame(cpl_frame* frm_cat,
00088 cpl_frame* frm_sci);
00089
00090
00091 cpl_error_code
00092 xsh_parse_catalog_std_stars(cpl_frame* cat,
00093 double dRA,
00094 double dDEC,
00095 double EPSILON,
00096 cpl_table** pptable);
00097
00098 void
00099 xsh_frame_sci_get_ra_dec_airmass(cpl_frame* frm_sci,double* ra, double* dec, double* airmass);
00100
00101 #endif