IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 27, 2012, 10:06:11 AM (14 years ago)
Author:
eugene
Message:

setphot / relphot now seem to work well with the ubercal input zero table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/StarOps.c

    r33157 r33169  
    8484            continue;
    8585          }
    86 
    87           // XXX include the ubercal measurements?  yes, of course!  these are the well-determined values, supposedly!
    8886
    8987          // XXX allow REF stars (no Image Entry) to be included in the calculation this
     
    118116          dlist[N] = MAX (catalog[i].measureT[m].dM, MIN_ERROR);
    119117
     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
    120123          // tie down reference photometry if the -refcode (code) option is selected
     124          // XXX re-think this...
    121125          if (refPhotcode) {
    122126            if (GetPhotcodeEquivCodebyCode(catalog[i].measureT[m].photcode) == refPhotcode[0].equiv) {
     
    140144        catalog[i].secfilt[Nsecfilt*j+Nsec].M  = stats.mean;
    141145        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;
    143147      }
    144148    }
Note: See TracChangeset for help on using the changeset viewer.