IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42487


Ignore:
Timestamp:
Aug 5, 2023, 2:41:45 PM (3 years ago)
Author:
eugene
Message:

enable non-linear fitting for bright sources in psphotFullForce

File:
1 edited

Legend:

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

    r37542 r42487  
    106106    psphotKronFlux (config, view, filerule);
    107107
     108    // Option to do the non-linear fitting for the brighter sources
     109    if (1) {
     110      // identify CRs and extended sources (only unmeasured sources are measured)
     111      psphotSourceSize (config, view, filerule, true); // pass 1 (detections->allSources)
     112
     113      // non-linear PSF and EXT fit to brighter sources
     114      // replace model flux, adjust mask as needed, fit, subtract the models (full stamp)
     115      // XXX: can leave faulted job in done queue
     116      psphotBlendFit (config, view, filerule); // pass 1 (detections->allSources)
     117
     118      // replace all sources
     119      psphotReplaceAllSources (config, view, filerule, false); // pass 1 (detections->allSources)
     120
     121      // linear fit to include all sources (subtract again)
     122      // NOTE : apply to ALL sources (extended + psf)
     123      psphotFitSourcesLinear (config, view, filerule, true, true); // pass 2 (detections->allSources)
     124    }
     125
    108126    psphotChipParams (config, view, filerule);
    109127
Note: See TracChangeset for help on using the changeset viewer.