IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 14, 2017, 10:33:58 PM (9 years ago)
Author:
mhuber
Message:

adjust the model/maskedSum cuts to previous lower values in WSdiff and SSdiff to prevent NAN flux/mag sig from skipped linear fit; adding back outputs for low sum values but as trace option that used to be log outputs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotFitSourcesLinear.c

    r39818 r40035  
    284284        //if (modelSum  < cut * normFlux) continue;
    285285        //if (maskedSum < cut * normFlux) continue;
     286
     287        // MEH add the log comments back in as trace instead, psphot 5? 
     288        if (modelSum < 0.8*normFlux) {
     289           psTrace ("psphot", 5, "low-sig model @ %f, %f (%f masked sum, %f sum, %f normFlux, %f peak)\n",
     290                   source->peak->xf, source->peak->yf, maskedSum, modelSum, normFlux, source->peak->rawFlux);
     291        }
     292        if (maskedSum < 0.5*normFlux) {
     293           psTrace ("psphot", 5, "worrying model @ %f, %f (%f masked sum, %f sum, %f normFlux, %f peak)\n",
     294                   source->peak->xf, source->peak->yf, maskedSum, modelSum, normFlux, source->peak->rawFlux);
     295        }
    286296        if (modelSum  < cutModelSum * normFlux) continue;
    287297        if (maskedSum < cutMaskedSum * normFlux) continue;
Note: See TracChangeset for help on using the changeset viewer.