IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2025, 11:21:40 AM (14 months ago)
Author:
eugene
Message:

add psphotFindFeatures; enable forced-photometry between cameras; do NOT skip negative-flux sources in full-force photometry; make PSF residual component generation more robust: IRLS vs median; exclude pixels with poor values (scaled value > 1.5, relative to normalized PSF); exclude pixels with too few inputs (<5); allow PSF clump to use clipped stats or robust stats

Location:
trunk/psphot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot

  • trunk/psphot/src/psphotMaskReadout.c

    r34293 r42842  
    5858            return false;
    5959        }
     60    }
     61
     62    // XXX test to repair variance
     63    if (true) {
     64      psImage *im = readout->image;
     65      psImage *wt = readout->variance;
     66      float maxVar = 0;
     67      // find the max value
     68      for (int j = 0; j < im->numRows; j++) {
     69        for (int i = 0; i < im->numCols; i++) {
     70            if (!isfinite(wt->data.F32[j][i])) continue;
     71            maxVar = PS_MAX (wt->data.F32[j][i], maxVar);
     72        }
     73      }
     74      // set pixels with nan variance and non-nan image to maxVar
     75      for (int j = 0; j < im->numRows; j++) {
     76        for (int i = 0; i < im->numCols; i++) {
     77            if (!isfinite(im->data.F32[j][i])) continue;
     78            if (isfinite(wt->data.F32[j][i])) continue;
     79            wt->data.F32[j][i] = maxVar;
     80        }
     81      }
    6082    }
    6183
Note: See TracChangeset for help on using the changeset viewer.