30 #include "muse_image.h"
31 #include "muse_pixtable.h"
32 #include "muse_resampling.h"
38 static const char kMuseFluxUnitString[] =
"10**(-20)*erg/s/cm**2/Angstrom";
39 static const char kMuseFluxStatString[] =
"(10**(-20)*erg/s/cm**2/Angstrom)**2";
40 static const double kMuseFluxUnitFactor = 1e20;
41 static const double kMuseFluxStatFactor = 1e40;
45 #define MUSE_HDR_FLUX_NOBJ "ESO DRS MUSE FLUX NOBJ"
46 #define MUSE_HDR_FLUX_OBJn_X "ESO DRS MUSE FLUX OBJ%d X"
47 #define MUSE_HDR_FLUX_OBJn_Y "ESO DRS MUSE FLUX OBJ%d Y"
48 #define MUSE_HDR_FLUX_OBJn_RA "ESO DRS MUSE FLUX OBJ%d RA"
49 #define MUSE_HDR_FLUX_OBJn_DEC "ESO DRS MUSE FLUX OBJ%d DEC"
50 #define MUSE_HDR_FLUX_OBJn_FLUX "ESO DRS MUSE FLUX OBJ%d INTFLUX"
Structure definition of a MUSE datacube.
muse_flux_smooth_type
Type of response curve smoothing to use.
muse_flux_profile_type
Type of optimal profile to use.
cpl_error_code muse_flux_reference_table_check(cpl_table *)
Check and/or adapt the standard flux reference table format.
const muse_cpltable_def muse_response_tellbands_def[]
Table definition for a telluric bands table.
Structure definition of MUSE three extension FITS file.
muse_flux_object * muse_flux_object_new(void)
Allocate memory for a new muse_flux_object object.
cpl_error_code muse_flux_get_telluric_table(muse_flux_object *)
Get the table of the telluric correction.
double muse_flux_response_interpolate(const cpl_table *, double, double *, muse_flux_interpolation_type)
Compute linearly interpolated response of some kind at given wavelength.
Structure definition of MUSE pixel table.
Flux object to store data needed while computing the flux calibration.
cpl_error_code muse_flux_response_compute(muse_flux_object *, muse_flux_selection_type, double, const cpl_table *, const cpl_table *, const cpl_table *)
Compare measured flux distribution over wavelength with calibrated stellar fluxes and derive instrume...
cpl_error_code muse_flux_calibrate(muse_pixtable *, const cpl_table *, const cpl_table *, const cpl_table *)
Convert the input pixel table from counts to fluxes.
muse_flux_interpolation_type
Type of table interpolation to use.
cpl_error_code muse_flux_get_response_table(muse_flux_object *, muse_flux_smooth_type)
Get the table of the standard star response function.
cpl_error_code muse_flux_integrate_std(muse_pixtable *, muse_flux_profile_type, muse_flux_object *)
Integrate the flux of the standard star(s) in the field over all wavelengths.
Definition of a cpl table structure.
muse_flux_selection_type
Type of star selection to use.
void muse_flux_object_delete(muse_flux_object *aFluxObj)
Deallocate memory associated to a muse_flux_object.