Changeset 5322 for trunk/Ohana/src/addstar/src/find_matches.c
- Timestamp:
- Oct 13, 2005, 2:40:16 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/src/find_matches.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/find_matches.c
r5287 r5322 1 1 # include "addstar.h" 2 2 3 void find_matches (GSCRegion *region, Stars *stars, int Nstars, Catalog *catalog, Image *image, Image *overlap, int Noverlap ) {3 void find_matches (GSCRegion *region, Stars *stars, int Nstars, Catalog *catalog, Image *image, Image *overlap, int Noverlap, AddstarClientOptions options) { 4 4 5 5 int i, j, n, N, J; … … 85 85 86 86 /* choose a radius for matches */ 87 if ( DEFAULT_RADIUS== 0) {88 RADIUS = NSIGMA* 0.02 * image[0].cerror; /* 0.02 corrects cerror to arcsec from storage units */87 if (options.radius == 0) { 88 RADIUS = options.Nsigma * 0.02 * image[0].cerror; /* 0.02 corrects cerror to arcsec from storage units */ 89 89 } else { 90 RADIUS = DEFAULT_RADIUS; /* provided by config */90 RADIUS = options.radius; /* provided by config */ 91 91 } 92 92 RADIUS2 = RADIUS*RADIUS; … … 162 162 163 163 /* adds the measurement to the calibration if appropriate color terms are found */ 164 if ( CALIBRATE) {164 if (options.calibrate) { 165 165 AddToCalibration (&catalog[0].average[n], catalog[0].measure, &catalog[0].measure[Nmeas], next_meas, N); 166 166 } … … 190 190 Nmeas ++; 191 191 192 if (! UPDATE) {192 if (!options.update) { 193 193 /* in UPDATE mode, newly calculated coordinates are not saved */ 194 194 update_coords (&catalog[0].average[n], &catalog[0].measure[0], next_meas); … … 200 200 /* add reference for undetected catalog stars */ 201 201 if (!strcmp (&image[0].coords.ctype[4], "-WRP")) RegisterMosaic (MOSAIC); 202 for (j = 0; (j < Nave) && ! SKIP_MISSED; j++) {202 for (j = 0; (j < Nave) && !options.skip_missed; j++) { 203 203 n = N2[j]; 204 204 if (catalog[0].found[n] < 0) { … … 224 224 /* incorporate unmatched image stars, if this star is in field of this catalog */ 225 225 /* these new entries are all written out in UPDATE mode */ 226 for (i = 0; (i < Nstars) && ! ONLY_MATCH; i++) {226 for (i = 0; (i < Nstars) && !options.only_match; i++) { 227 227 /* make sure there is space for next entry */ 228 228 if (Nmeas >= NMEAS) { … … 285 285 286 286 /** now add references from all previous non-detection observations of this spot on the sky */ 287 for (j = 0; (j < Noverlap) && ! SKIP_MISSED; j++) {287 for (j = 0; (j < Noverlap) && !options.skip_missed; j++) { 288 288 /* make sure there is space for next entry */ 289 289 if (Nmiss >= NMISS) { … … 316 316 REALLOCATE (catalog[0].missing, Missing, Nmiss); 317 317 318 if ( NOSORT) {318 if (options.nosort) { 319 319 catalog[0].sorted = FALSE; 320 320 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
