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. |
#include omega_wcscor.h #include omega_catalog.h #include omega_dfs.h #include omega_pfits.h #include omega_trim.h #include omega_utils.h
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.
reduced | Name of reduced image (STD or science) | |
catalog | Frame of MASTER_USNOA | |
pars | Parameters list | |
ext | FITS extension to load | |
nmatches | Output number of matches | |
mratio | Output ratio USNOA2 matches/detected stars |
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.
frame | Frame of raw image (not trimmed) | |
xn | FITS extension to load | |
plist | Property list of original frame which will be updated |
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().