Changeset 13142
- Timestamp:
- May 2, 2007, 2:21:02 PM (19 years ago)
- Location:
- trunk/Ohana/src/addstar
- Files:
-
- 3 edited
-
include/addstar.h (modified) (2 diffs)
-
src/find_matches.c (modified) (2 diffs)
-
src/find_matches_closest.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/addstar.h
r12840 r13142 77 77 char CCDNumKeyword[64]; 78 78 char STKeyword[64]; 79 char ExtnameKeyword[64]; 79 80 80 81 /* these globals modify the behavior of gstars (KEEP) */ … … 122 123 /*** addstar prototypes ***/ 123 124 124 void AddToCalibration PROTO((Average *average, Measure *measure, Measure *new, int *next, int Nstar));125 void AddToCalibration PROTO((Average *average, SecFilt *secfilt, Measure *measure, Measure *new, int *next, int Nstar)); 125 126 AddstarClientOptions ConfigInit PROTO((int *argc, char **argv)); 126 127 void FindCalibration PROTO((Image *image)); -
trunk/Ohana/src/addstar/src/find_matches.c
r12400 r13142 184 184 catalog[0].measure[Nmeas].theta = MIN ((0xffff/360.0)*stars[N].df, NO_MAG); 185 185 186 /* adds the measurement to the calibration if appropriate color terms are found */ 187 /* we call this before (optionally) setting the average magnitude to avoid auto-correlations */ 188 if (options.calibrate) { 189 AddToCalibration (&catalog[0].average[n], &catalog[0].secfilt[n*Nsecfilt], catalog[0].measure, &catalog[0].measure[Nmeas], next_meas, N); 190 } 191 186 192 /* set the average magnitude if not already set and if photcode.equiv is not 0 */ 187 193 /* in UPDATE mode, this value is not saved; use relphot to recalculate */ … … 190 196 catalog[0].secfilt[n*Nsecfilt+Nsec].M = PhotCat (&catalog[0].measure[Nmeas]); 191 197 } 192 }193 194 /* adds the measurement to the calibration if appropriate color terms are found */195 if (options.calibrate) {196 AddToCalibration (&catalog[0].average[n], catalog[0].measure, &catalog[0].measure[Nmeas], next_meas, N);197 198 } 198 199 -
trunk/Ohana/src/addstar/src/find_matches_closest.c
r12400 r13142 212 212 /* adds the measurement to the calibration if appropriate color terms are found */ 213 213 if (options.calibrate) { 214 AddToCalibration (&catalog[0].average[n], catalog[0].measure, &catalog[0].measure[Nmeas], next_meas, N);214 AddToCalibration (&catalog[0].average[n], &catalog[0].secfilt[n*Nsecfilt], catalog[0].measure, &catalog[0].measure[Nmeas], next_meas, N); 215 215 } 216 216
Note:
See TracChangeset
for help on using the changeset viewer.
