- Timestamp:
- Jan 27, 2012, 10:06:11 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/StarOps.c
r33157 r33169 84 84 continue; 85 85 } 86 87 // XXX include the ubercal measurements? yes, of course! these are the well-determined values, supposedly!88 86 89 87 // XXX allow REF stars (no Image Entry) to be included in the calculation this … … 118 116 dlist[N] = MAX (catalog[i].measureT[m].dM, MIN_ERROR); 119 117 118 // up-weight the ubercal values (or convergence can take a long time...) 119 if (catalog[i].measureT[m].dbFlags & ID_MEAS_PHOTOM_UBERCAL) { 120 dlist[N] = MAX (0.1*catalog[i].measureT[m].dM, MIN_ERROR); 121 } 122 120 123 // tie down reference photometry if the -refcode (code) option is selected 124 // XXX re-think this... 121 125 if (refPhotcode) { 122 126 if (GetPhotcodeEquivCodebyCode(catalog[i].measureT[m].photcode) == refPhotcode[0].equiv) { … … 140 144 catalog[i].secfilt[Nsecfilt*j+Nsec].M = stats.mean; 141 145 catalog[i].secfilt[Nsecfilt*j+Nsec].dM = stats.sigma; 142 catalog[i].secfilt[Nsecfilt*j+Nsec].Xm = (stats.Nmeas > 1) ? 100.0*log10(stats.chisq ) : NAN_S_SHORT;146 catalog[i].secfilt[Nsecfilt*j+Nsec].Xm = (stats.Nmeas > 1) ? 100.0*log10(stats.chisq + 1e-4) : NAN_S_SHORT; 143 147 } 144 148 }
Note:
See TracChangeset
for help on using the changeset viewer.
