High level functions


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 Documentation

#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.


Function Documentation

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.

Parameters:
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
Returns:
average airmass as determined from raw frame

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.

Parameters:
sources 
Returns:
newly allocated table of sources properties
The given list of objects may or may not be identified

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.

Parameters:
master master image
convert_ADU factor to convert from master units to ADU
master_noise master noise (ADU) for a shift of zero
Returns:
fixed pattern noise. The master noise is quadratically subtracted

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.

Parameters:
first_raw First raw bias frame
second_raw Second raw bias frame
ron Read out noise (ADU) for a shift of zero
Returns:
fixed pattern noise. The ron is quadratically subtracted

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.

Parameters:
header header to read from
Returns:
average airmass

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().


Generated on Fri Mar 4 09:46:01 2011 for FORS Pipeline Reference Manual by  doxygen 1.4.7