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.
int fors_isnan (double x)

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, and fors_get_airmass().

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_ellipticity(), fors_star_get_zeropoint(), and fors_star_get_zeropoint_err().

Referenced by extract_test().

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, fors_image_crop(), fors_image_duplicate(), fors_image_get_size_x(), fors_image_get_size_y(), fors_image_get_stdev(), and fors_image_subtract().

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

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.

Referenced by fors_star_ext_corr().


Generated on 12 Feb 2016 for FORS Pipeline Reference Manual by  doxygen 1.6.1