IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 17, 2016, 9:54:33 PM (10 years ago)
Author:
mhuber
Message:

split model/maskedSum cuts again and add config options to fix previous changes hardcoding cuts to same value that excessively skipped photometry in diffims for MOPS...

File:
1 edited

Legend:

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

    r38514 r39818  
    193193        MAX_VALID_FLUX = 1e+8;
    194194    }
     195
     196    float cutModelSum = psMetadataLookupF32(&status, recipe, "PSF_FIT_MODEL_SUM_FRAC_CUT");
     197    float cutMaskedSum = psMetadataLookupF32(&status, recipe, "PSF_FIT_MASKED_SUM_FRAC_CUT");
    195198
    196199    // XXX test: choose a larger-than expected radius:
     
    278281
    279282        // printf("%5d %4.3f %4.3f %4.3f\n", source->seq, normFlux, modelSum, maskedSum);
    280         float cut = .85;
    281         if (modelSum  < cut * normFlux) continue;
    282         if (maskedSum < cut * normFlux) continue;
     283        //float cut = .85;
     284        //if (modelSum  < cut * normFlux) continue;
     285        //if (maskedSum < cut * normFlux) continue;
     286        if (modelSum  < cutModelSum * normFlux) continue;
     287        if (maskedSum < cutMaskedSum * normFlux) continue;
    283288
    284289        // clear the 'mark' pixels and remask on the fit aperture
Note: See TracChangeset for help on using the changeset viewer.