OMEGA Pipeline Reference Manual  1.0.5
Functions
Astrometry functions

Functions

cpl_propertylist * omega_match_points (const char *reduced, const char *reduced_weight, const cpl_frame *catalog, cpl_parameterlist *pars, int ext, int *nmatches, double *mratio)
 Calculate WCS correction for a reduced image using pattern matching.
int omega_shift_refpix (const cpl_frame *frame, int xn, cpl_propertylist *xlist)
 Shift reference pixel of a trimmed image based on the trimming regions.

Detailed Description

Synopsis:
This module provides functions to calculate the deal with astrometric correction
#include omega_wcscor.h
#include omega_catalog.h
#include omega_dfs.h
#include omega_pfits.h
#include omega_trim.h
#include omega_utils.h

Function Documentation

cpl_propertylist* omega_match_points ( const char *  reduced,
const char *  reduced_weight,
const cpl_frame *  catalog,
cpl_parameterlist *  pars,
int  ext,
int *  nmatches,
double *  mratio 
)

Calculate WCS correction for a reduced image using pattern matching.

Functions to handle astrometric calculations.

Parameters:
reducedName of reduced image (STD or science)
catalogFrame of MASTER_USNOA
parsParameters list
extFITS extension to load
nmatchesOutput number of matches
mratioOutput ratio USNOA2 matches/detected stars
Returns:
A property list with the WCS coordinates or NULL in case of error.

This function will create a catalogue of sources from the image and convert the X_IMAGE and Y_IMAGE coordinates of each source to Ra and Dec. It will then get the coverage of the image and extract all USNOA stars that lie in this region. The RA2000 and Dec2000 coordinates of these extracted stars will be converted to X_predict Y_predict and will be added to the same table. the two catalogues will be sorted in ascending magnitude (MAG_AUTO and MagB). Two matrices will be created from these lists and used in the pattern matching routine. If there is a minimum of matches, then a plate solution will be derived from this list.

Definition at line 163 of file omega_wcscor.c.

References omega_filter_table_float(), omega_filter_table_int(), omega_get_coverage(), omega_get_usnoa_table(), omega_pfits_get_conad(), and omega_pfits_get_filter_info().

Referenced by omega_jitter_process(), and omega_std_process().

int omega_shift_refpix ( const cpl_frame *  frame,
int  xn,
cpl_propertylist *  xlist 
)

Shift reference pixel of a trimmed image based on the trimming regions.

Parameters:
frameFrame of raw image (not trimmed)
xnFITS extension to load
plistProperty list of original frame which will be updated
Returns:
0 on success or -1 in case of error.

Definition at line 97 of file omega_wcscor.c.

References get_trim_region(), and omega_pfits_check_instrume().

Referenced by omega_fringes_flat_process(), omega_jitter_process(), omega_nsky_process(), and omega_std_process().