IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2009, 3:12:47 PM (17 years ago)
Author:
eugene
Message:

check in changes from gene@development branch : extensive changes to moments calculation, psf model generation, aperture residuals; improvements to extended source analysis

Location:
trunk/psphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src

    • Property svn:ignore
      •  

        old new  
        1818psphotVersionDefinitions.h
        1919psphotMomentsStudy
         20psphotPetrosianStudy
  • trunk/psphot/src/psphotImageLoop.c

    r23957 r25755  
    6767
    6868                // Update the header
    69                 {
    70                     pmHDU *hdu = pmHDUGetHighest(input->fpa, chip, cell);
    71                     if (hdu && hdu != lastHDU) {
    72                         psphotVersionHeaderFull(hdu->header);
    73                         lastHDU = hdu;
    74                     }
     69                pmHDU *hdu = pmHDUGetHighest(input->fpa, chip, cell);
     70                if (hdu && hdu != lastHDU) {
     71                    psphotVersionHeaderFull(hdu->header);
     72                    lastHDU = hdu;
    7573                }
    7674
    77                 psImageMaskType maskSat = pmConfigMaskGet("SAT", config); // Mask value for saturated pixels
    78                 if (!pmReadoutMaskNonfinite(readout, maskSat)) {
    79                     psError(psErrorCodeLast(), false, "Unable to mask non-finite pixels.");
    80                     psFree(view);
    81                     return false;
    82                 }
     75                // if an external mask is supplied, ensure that NAN pixels are also masked
     76                if (readout->mask) {
     77                    psImageMaskType maskSat = pmConfigMaskGet("SAT", config); // Mask value for saturated pixels
     78                    if (!pmReadoutMaskNonfinite(readout, maskSat)) {
     79                        psError(psErrorCodeLast(), false, "Unable to mask non-finite pixels.");
     80                        psFree(view);
     81                        return false;
     82                    }
     83                }
    8384
    8485                // run the actual photometry analysis on this chip/cell/readout
Note: See TracChangeset for help on using the changeset viewer.