gifxcalibration.h
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
00027
00028 #ifndef GIFXCALIBRATION_H
00029 #define GIFXCALIBRATION_H
00030
00031
00032 #include <cpl_parameterlist.h>
00033
00034 #include <giimage.h>
00035 #include <gitable.h>
00036 #include <girebinning.h>
00037 #include <giresponse.h>
00038
00039
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif
00043
00044 struct GiFxCalibrationConfig {
00045 cxbool sky_subtraction;
00046 };
00047
00048 typedef struct GiFxCalibrationConfig GiFxCalibrationConfig;
00049
00050
00051 GiFxCalibrationConfig*
00052 giraffe_fxcalibration_config_create(cpl_parameterlist* parameters);
00053 void giraffe_fxcalibration_config_destroy(GiFxCalibrationConfig* self);
00054
00055 void giraffe_fxcalibration_config_add(cpl_parameterlist* parameters);
00056
00057
00058 GiTable* giraffe_select_flux_standard(const GiTable* catalog,
00059 const GiImage* spectra,
00060 cxdouble max_dist);
00061
00062 cxint giraffe_calibrate_flux(GiResponse* result,
00063 const GiRebinning* spectra,
00064 const GiTable* fibers,
00065 const GiImage* flat,
00066 const GiTable* flux,
00067 const GiTable* extinction,
00068 const GiFxCalibrationConfig* config);
00069
00070
00071 #ifdef __cplusplus
00072 }
00073 #endif
00074
00075 #endif