Flux calibration
Functions | |
GiTable * | giraffe_select_flux_standard (const GiTable *catalog, const GiImage *spectra, cxdouble max_dist) |
cxint | giraffe_calibrate_flux (GiResponse *result, const GiRebinning *spectra, const GiTable *fibers, const GiImage *flat, const GiTable *flux, const GiTable *extinction, const GiFxCalibrationConfig *config) |
Compute the response and efficiency curves. | |
GiFxCalibrationConfig * | giraffe_fxcalibration_config_create (cpl_parameterlist *parameters) |
void | giraffe_fxcalibration_config_destroy (GiFxCalibrationConfig *self) |
Destroy a flux calibration setup structure. | |
void | giraffe_fxcalibration_config_add (cpl_parameterlist *parameters) |
Add flux calibration parameters to a parameter list. |
Detailed Description
TBDFunction Documentation
cxint giraffe_calibrate_flux | ( | GiResponse * | result, | |
const GiRebinning * | spectra, | |||
const GiTable * | fibers, | |||
const GiImage * | flat, | |||
const GiTable * | flux, | |||
const GiTable * | extinction, | |||
const GiFxCalibrationConfig * | config | |||
) |
Compute the response and efficiency curves.
- Parameters:
-
result The object where the results are stored. spectra The rebinned spectra of a flux standard. fibers The list of used fibers. flat The extracted flat field. flux Table with the reference flux of the observed standard. extinction Table with the wavelength dependent atmospheric extinction coefficients. config The configuration options.
- Returns:
- The function returns 0 on success, or a non-zero value if an error occurred.
The function expects as input an observation of a single flux standard, i.e. no other target is visible with in the Argus field of view, or, in case of an IFU observation, all buttons are either used to observe the target, or point to blank sky. As additional constraint, the individual fiber spectra of the flux standard have to be rebinned to a common wavelength grid, i.e. the wavelength range for all fibers has to be the same.
The total observed flux of the flux standard is computed by adding up the spectra of all fibers. No background subtraction, and, in the case of Argus, no source detection is performed. The response and the efficiency curves are computed for the wavelength range given by the rebinned flux standard observation.
Definition at line 1511 of file gifxcalibration.c.
References GiResponse::efficiency, gi_warning(), giraffe_error_pop(), giraffe_error_push(), giraffe_image_get(), giraffe_image_get_properties(), giraffe_image_new(), giraffe_image_set(), giraffe_image_set_properties(), giraffe_table_get(), giraffe_table_new(), giraffe_table_set(), giraffe_table_set_properties(), GiResponse::response, GiFxCalibrationConfig::sky_subtraction, and GiFieldOfView::spectra.
void giraffe_fxcalibration_config_add | ( | cpl_parameterlist * | parameters | ) |
Add flux calibration parameters to a parameter list.
- Parameters:
-
parameters The list of parameters to update.
- Returns:
- Nothing
Definition at line 1877 of file gifxcalibration.c.
void giraffe_fxcalibration_config_destroy | ( | GiFxCalibrationConfig * | self | ) |
Destroy a flux calibration setup structure.
- Parameters:
-
self The setup structure to destroy.
- Returns:
- Nothing.
Definition at line 1851 of file gifxcalibration.c.