Defines | |
#define | cleanup |
#define | cleanup |
#define | cleanup |
#define | cleanup |
Functions | |
double | fors_star_ext_corr (fors_star_list *stars, const fors_setting *setting, double ext_coeff, double dext_coeff, const cpl_frame *raw_frame) |
Correct for extinction, gain, exposure time. | |
cpl_table * | fors_create_sources_table (fors_star_list *sources) |
Create product. | |
double | fors_fixed_pattern_noise (const fors_image *master, double convert_ADU, double master_noise) |
Compute fixed pattern noise in flat field. | |
double | fors_fixed_pattern_noise_bias (const fors_image *first_raw, const fors_image *second_raw, double ron) |
Compute fixed pattern noise in bias. | |
double | fors_get_airmass (const cpl_propertylist *header) |
Compute average airmass. |
#define cleanup |
Value:
do { \ cpl_propertylist_delete(header); \ } while(0)
Definition at line 391 of file fors_tools.c.
#define cleanup |
Value:
do { \ fors_image_delete(&image); \ fors_image_delete(&image2); \ } while(0)
Definition at line 391 of file fors_tools.c.
#define cleanup |
Value:
do { \ fors_image_delete(&image); \ fors_image_delete(&image2); \ } while(0)
Definition at line 391 of file fors_tools.c.
double fors_star_ext_corr | ( | fors_star_list * | stars, | |
const fors_setting * | setting, | |||
double | ext_coeff, | |||
double | dext_coeff, | |||
const cpl_frame * | raw_frame | |||
) |
Correct for extinction, gain, exposure time.
stars | with magnitudes to be corrected | |
setting | instrument setting | |
ext_coeff | extinction coefficient for this filter | |
dext_coeff | extinction coefficient error | |
raw_frame | containing airmass, exposure time information |
Definition at line 65 of file fors_tools.c.
References assure, _fors_setting::average_gain, cleanup, _fors_star::dmagnitude, _fors_star::dmagnitude_corr, _fors_setting::exposure_time, fors_get_airmass(), _fors_star::magnitude, and _fors_star::magnitude_corr.
Referenced by fors_zeropoint().
cpl_table* fors_create_sources_table | ( | fors_star_list * | sources | ) |
Create product.
sources |
Definition at line 130 of file fors_tools.c.
References _fors_star::dmagnitude, _fors_star::dmagnitude_corr, fors_star_ellipticity(), fors_star_get_zeropoint(), fors_star_get_zeropoint_err(), _fors_star::fwhm, _fors_star::id, _fors_star::magnitude, _fors_star::magnitude_corr, _fors_star::orientation, _fors_star::pixel, _fors_star::semi_major, _fors_star::semi_minor, _fors_star::stellarity_index, and _fors_star::weight.
Referenced by extract_test(), fors_img_science(), and fors_zeropoint().
double fors_fixed_pattern_noise | ( | const fors_image * | master, | |
double | convert_ADU, | |||
double | master_noise | |||
) |
Compute fixed pattern noise in flat field.
master | master image | |
convert_ADU | factor to convert from master units to ADU | |
master_noise | master noise (ADU) for a shift of zero |
Definition at line 244 of file fors_tools.c.
References assure, cleanup, fors_image_crop(), fors_image_duplicate(), fors_image_get_size_x(), fors_image_get_size_y(), fors_image_get_stdev(), and fors_image_subtract().
Referenced by write_qc().
double fors_fixed_pattern_noise_bias | ( | const fors_image * | first_raw, | |
const fors_image * | second_raw, | |||
double | ron | |||
) |
Compute fixed pattern noise in bias.
first_raw | First raw bias frame | |
second_raw | Second raw bias frame | |
ron | Read out noise (ADU) for a shift of zero |
Definition at line 329 of file fors_tools.c.
References assure, cleanup, fors_image_crop(), fors_image_duplicate(), fors_image_get_size_x(), fors_image_get_size_y(), fors_image_get_stdev_robust(), and fors_image_subtract().
Referenced by write_qc().
double fors_get_airmass | ( | const cpl_propertylist * | header | ) |
Compute average airmass.
header | header to read from |
Definition at line 398 of file fors_tools.c.
References assure, FORS_PFITS_AIRMASS_END, and FORS_PFITS_AIRMASS_START.
Referenced by fors_img_science(), fors_star_ext_corr(), fors_zeropoint(), and vimos_science_impl().