IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42187


Ignore:
Timestamp:
Apr 30, 2022, 4:31:42 PM (4 years ago)
Author:
eugene
Message:

more log info; add check for stars selected for PSF model, use S/N 0.1 to measure the psf stats if none exist (e.g., in Forced situation)

Location:
branches/eam_branches/ipp-20220316/psphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316/psphot/src/psphotChoosePSF.c

    r42087 r42187  
    594594    psVector *psfExtra2 = psVectorAllocEmpty (100, PS_DATA_F32);
    595595
     596    // count how many PSF stars are defined
     597    int nPSFstars = 0; // count the number of PSF stars
    596598    for (int i = 0; i < sources->n; i++) {
    597 
    598599        pmSource *source = sources->data[i];
    599 
    600600        if (!(source->mode & PM_SOURCE_MODE_PSFSTAR)) continue;
     601    }
     602
     603    for (int i = 0; i < sources->n; i++) {
     604
     605        pmSource *source = sources->data[i];
     606
     607        // If no sources are PSFSTARs, then let's just use all with S/N > 0.1.
     608        // (This can happen if all are supplied)
     609        if (nPSFstars) {
     610            if (!(source->mode & PM_SOURCE_MODE_PSFSTAR)) continue;
     611        } else {
     612            if (source->psfMagErr > 0.1) continue;
     613        }
    601614
    602615        float xc = source->peak->xf;
  • branches/eam_branches/ipp-20220316/psphot/src/psphotSkyReplace.c

    r34528 r42187  
    44{
    55    bool status = true;
     6
     7    fprintf (stdout, "\n");
     8    psLogMsg ("psphot", PS_LOG_INFO, "--- psphot Replace Sky ---");
    69
    710    int num = psphotFileruleCount(config, filerule);
Note: See TracChangeset for help on using the changeset viewer.