CR2RE Pipeline Reference Manual 1.6.7
Modules | Functions
Catalogue

Main function of the catalogue. More...

Modules

 hdrl_apclust
 Detect multiple objects from a given Plessey array.
 
 hdrl_apio
 Initialize the ap structure.
 
 hdrl_apline
 Detect objects on a line of data.
 
 hdrl_areals
 Work out the areal profiles for an object.
 
 hdrl_background
 Model and create background map.
 
 hdrl_casu
 Generic functions.
 
 hdrl_classify
 Do star/galaxy classification.
 
 hdrl_extend
 Do aperture integration.
 
 hdrl_filter
 Do bilinear median and linear filtering on background values.
 
 hdrl_moments
 Do moments analysis on an object.
 
 hdrl_overlp
 Deblend overlapping images.
 
 hdrl_phopt
 Does multiple profile fitting to determine intensities.
 
 hdrl_polynm
 Work out the median seeing.
 
 hdrl_radii
 Work out the fluxes for special radii.
 
 hdrl_seeing
 Work out the median seeing.
 
 hdrl_solve
 Use Gauss-Jordan elimination to solve ax=b.
 
 hdrl_statistics
 Compute statistics.
 
 hdrl_catalogue_table
 Table for the catalogue.
 
 hdrl_terminate
 Check for objects that have terminated.
 
 hdrl_utils_catalogue
 Common functions.
 
 hdrl_utils_sort
 Sort functions for differents data types.
 

Functions

cpl_error_code hdrl_catalogue_conf (hdrl_casu_fits *infile, hdrl_casu_fits *conf, cpl_size ipix, double threshold, cpl_size icrowd, double rcore, cpl_size bkg_subtr, cpl_size nbsize, cpl_size cattype, double filtfwhm, double gain, double saturation, hdrl_casu_result *res)
 Do source extraction.
 

Detailed Description

Main function of the catalogue.

Function Documentation

◆ hdrl_catalogue_conf()

cpl_error_code hdrl_catalogue_conf ( hdrl_casu_fits *  infile,
hdrl_casu_fits *  conf,
cpl_size  ipix,
double  threshold,
cpl_size  icrowd,
double  rcore,
cpl_size  bkg_subtr,
cpl_size  nbsize,
cpl_size  cattype,
double  filtfwhm,
double  gain,
double  saturation,
hdrl_casu_result *  res 
)

Do source extraction.

Parameters
infileThe input image
confThe input confidence map
ipixThe minimum allowable size of an object
thresholdThe detection threshold in sigma above sky
icrowdIf set then the deblending software will be used
rcoreThe core radius in pixels
bkg_subtrThe switch to do background subtraction
nbsizeThe smoothing box size for background map estimation
cattypeThe type of catalogue to be produced
filtfwhmThe FWHM of the smoothing kernel in the detection algorithm
gainThe header keyword with the gain in e-/ADU
saturationThe saturation level in ADU
resthe result after source extraction
Returns
CPL_ERROR_NONE if everything is ok. The concrete error in other case.
Note
QC headers: The following values will go into the image extension propertylist.
  • SATURATION: Saturation level in ADU.
  • MEAN_SKY: Mean sky brightness in ADU.
  • SKY_NOISE: Pixel noise at sky level in ADU.
DRS headers: The following values will go into the image extension propertylist
  • SKYLEVEL: Mean sky brightness in ADU
  • SKYNOISE: Pixel noise at sky level in ADU The following values will go into the table extension propertylist
  • THRESHOL: The detection threshold in ADU
  • MINPIX: The minimum number of pixels per image
  • CROWDED: Flag for crowded field analysis
  • RCORE: The core radius for default profile fit in pixels
  • FILTFWHM: The FWHM of the smoothing kernel in the detection algorithm
  • SEEING: The average FWHM of stellar objects in pixels
  • XCOL: The column containing the X position
  • YCOL: The column containing the Y position
  • NXOUT: The X dimension of the original image array
  • NYOUT: The Y dimension of the original image array

Definition at line 112 of file hdrl_cat_conf.c.

References hdrl_apfu(), hdrl_apinit(), hdrl_apline(), hdrl_background(), hdrl_backstats(), hdrl_casu_fits_get_ehu(), hdrl_casu_fits_get_image(), hdrl_casu_tfits_wrap(), hdrl_do_seeing(), hdrl_tabinit(), and hdrl_terminate().

Referenced by hdrl_casu_catalogue().