FORS Pipeline Reference Manual  5.0.9
Macros | Functions
High level functions

Macros

#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. More...
 
cpl_table * fors_create_sources_table (fors_star_list *sources)
 Create product. More...
 
double fors_fixed_pattern_noise (const fors_image *master, double convert_ADU, double master_noise)
 Compute fixed pattern noise in flat field. More...
 
double fors_fixed_pattern_noise_bias (const fors_image *first_raw, const fors_image *second_raw, double ron)
 Compute fixed pattern noise in bias. More...
 
double fors_get_airmass (const cpl_propertylist *header)
 Compute average airmass. More...
 
int fors_isnan (double x)
 

Detailed Description

Macro Definition 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(&image2); \
} while(0)
void fors_image_delete(fors_image **image)
Deallocate image and set pointer to NULL.
Definition: fors_image.c:164

Definition at line 391 of file fors_tools.c.

#define cleanup
Value:
do { \
fors_image_delete(&image2); \
} while(0)
void fors_image_delete(fors_image **image)
Deallocate image and set pointer to NULL.
Definition: fors_image.c:164

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
starswith magnitudes to be corrected
settinginstrument setting
ext_coeffextinction coefficient for this filter
dext_coeffextinction coefficient error
raw_framecontaining 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
mastermaster image
convert_ADUfactor to convert from master units to ADU
master_noisemaster 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_rawFirst raw bias frame
second_rawSecond raw bias frame
ronRead 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
headerheader to read from
Returns
average airmass

Definition at line 398 of file fors_tools.c.

References assure.

Referenced by fors_star_ext_corr().