IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2023, 10:31:04 AM (3 years ago)
Author:
eugene
Message:

add test code to examine the PSF residual inputs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/psphot/src/psphotFullForceReadout.c

    r37542 r42507  
    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      // do NOT skip negative-flux sources (last arg = false)
     124      psphotFitSourcesLinear (config, view, filerule, true, false); // pass 2 (detections->allSources)
     125    }
     126
    108127    psphotChipParams (config, view, filerule);
    109128
Note: See TracChangeset for help on using the changeset viewer.