FORS Pipeline Reference Manual
5.0.9
|
Data Structures | |
struct | _identify_method |
Macros | |
#define | cleanup |
#define | cleanup |
#define | cleanup |
Functions | |
static bool | inside_region (const fors_std_star *std, void *reg) |
Determine if star is inside region. More... | |
static void | match_patterns (const fors_star_list *stars, const fors_std_star_list *std, double kappa, double *sx_00, double *sy_00, double *med_scale, double *med_angle, int *status) |
Match patterns. More... | |
void | fors_identify_define_parameters (cpl_parameterlist *parameters, const char *context) |
Define recipe parameters. More... | |
identify_method * | fors_identify_method_new (const cpl_parameterlist *parameters, const char *context) |
Get id method from parameter list. More... | |
void | fors_identify_method_delete (identify_method **em) |
Deallocate identifyion method and set the pointer to NULL. | |
static bool | std_brighter_than (const fors_std_star *s1, void *s2) |
Compare brightness. More... | |
static bool | star_brighter_than (const fors_star *s1, void *s2) |
Compare brightness. More... | |
static double | distsq_shift (const fors_star *s, const fors_std_star *std, double shiftx, double shifty) |
Distance between source and shifted catalog star. More... | |
static bool | star_nearer (const fors_star *s1, const fors_star *s2, void *data) |
Tell if a source is closest to a catalog star. More... | |
void | fors_identify (fors_star_list *stars, fors_std_star_list *cat, const identify_method *im, cpl_image **histogram) |
Identify sources. More... | |
#define cleanup |
Definition at line 992 of file fors_identify.c.
#define cleanup |
Definition at line 992 of file fors_identify.c.
#define cleanup |
Definition at line 992 of file fors_identify.c.
|
static |
Determine if star is inside region.
std | star |
reg | rectangular region, see code for the required type |
Definition at line 976 of file fors_identify.c.
Referenced by fors_identify().
|
static |
Match patterns.
stars | sources |
std | reference stars |
sx_00 | (output) shift in x |
sy_00 | (output) shift in y |
med_scale | (output) median scale |
med_angle | (output) median angle |
For now, the shifts are approximated with constant 2d polynomials as function of detector (x, y) position.
This function could be extended to fit 2d polynomials of degree > 0, if necessary.
Definition at line 1023 of file fors_identify.c.
References assure, fors_angle_diff(), fors_point_new(), and fors_star_extension().
Referenced by fors_identify().
void fors_identify_define_parameters | ( | cpl_parameterlist * | parameters, |
const char * | context | ||
) |
Define recipe parameters.
parameters | parameter list to fill |
context | parameters context |
Definition at line 82 of file fors_identify.c.
Referenced by test_identify().
identify_method* fors_identify_method_new | ( | const cpl_parameterlist * | parameters, |
const char * | context | ||
) |
Get id method from parameter list.
parameters | recipe parameter list |
context | read id method from this context |
The parameter list should have been previously created using fors_identify_define_parameters()
Definition at line 193 of file fors_identify.c.
References assure, and dfs_get_parameter_double_const().
Referenced by test_identify().
|
static |
Compare brightness.
s1 | 1st star |
s2 | 2nd star |
This function is the same as fors_std_star_brighter_than() but with the interface expected by list_extract()
Definition at line 274 of file fors_identify.c.
Referenced by fors_identify().
|
static |
Compare brightness.
s1 | 1st star |
s2 | 2nd star |
This function is the same as fors_star_brighter_than() but with the interface expected by list_extract()
Definition at line 290 of file fors_identify.c.
References fors_star_brighter_than().
Referenced by fors_identify().
|
static |
Distance between source and shifted catalog star.
s | source |
std | catalog star |
shiftx | shift applied to std |
shifty | shift applied to std |
Definition at line 305 of file fors_identify.c.
References fors_point_delete(), fors_point_distsq(), and fors_point_new().
Referenced by fors_identify(), and star_nearer().
Tell if a source is closest to a catalog star.
s1 | 1st source |
s2 | 2nd source |
d | radius, shift, catalog star |
Definition at line 329 of file fors_identify.c.
References distsq_shift().
Referenced by fors_identify().
void fors_identify | ( | fors_star_list * | stars, |
fors_std_star_list * | cat, | ||
const identify_method * | im, | ||
cpl_image ** | histogram | ||
) |
Identify sources.
stars | list of stars to identify |
cat | list of catalog stars |
im | parameters |
pseudocode: Select catalog stars, 10 brightest stars inside CCD Select source stars, brightest 2 x catalog stars Compute reference patterns Compute source patterns For each reference pattern Identify with nearest source, compute scale, orientation Reject outliers, get average shift
For each catalog star Apply shift Identify with nearest source inside search radius
Definition at line 372 of file fors_identify.c.
References assure, distsq_shift(), fors_star_brighter_than(), fors_star_duplicate(), fors_star_get_x(), fors_star_get_y(), fors_star_print_list(), inside_region(), match_patterns(), star_brighter_than(), star_nearer(), and std_brighter_than().
Referenced by test_identify().