Changeset 4825
- Timestamp:
- Aug 19, 2005, 4:32:02 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/src/find_matches.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/find_matches.c
r4800 r4825 13 13 Coords tcoords; 14 14 int Nsecfilt, Nsec, MTIME; 15 short int M rel, *Mval;15 short int Mcat, *Mval; 16 16 17 17 /* photcode data - must by of type DEP, (PRI, SEC) - probably should restrict to DEP */ … … 165 165 catalog[0].measure[Nmeas].theta = MIN ((255/360)*stars[N].df, NO_ERR); 166 166 167 /*** this should probably use the mag lookup functions - zeropoints are incorrectly applied ***/168 167 /* it is not valid to pass PRI/SEC/REF photcodes to this routine */ 169 168 /* check for entries in the secfilt lists */ 170 M rel = catalog[0].measure[Nmeas].M + secz * thiscode[0].K;169 Mcat = iPhotCat (&catalog[0].measure[Nmeas]); 171 170 Mval = (Nsec == -1) ? &catalog[0].average[n].M : &catalog[0].secfilt[n*Nsecfilt+Nsec].M; 172 if (*Mval == NO_MAG) *Mval = M rel;171 if (*Mval == NO_MAG) *Mval = Mcat; 173 172 174 173 /** this is a little tricky: the new measures are not in the measure sequence … … 292 291 catalog[0].measure[Nmeas].theta = MIN ((255/360)*stars[N].df, NO_ERR); 293 292 294 M rel = catalog[0].measure[Nmeas].M + secz * thiscode[0].K;293 Mcat = iPhotCat (&catalog[0].measure[Nmeas]); 295 294 Mval = (Nsec == -1) ? &catalog[0].average[Nave].M : &catalog[0].secfilt[Nave*Nsecfilt+Nsec].M; 296 if (*Mval == NO_MAG) *Mval = M rel;295 if (*Mval == NO_MAG) *Mval = Mcat; 297 296 298 297 /** now add references from all previous non-detection observations of this spot on the sky */
Note:
See TracChangeset
for help on using the changeset viewer.
