IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 19, 2012, 12:02:03 PM (14 years ago)
Author:
eugene
Message:

subtract background in psphotReadoutMinimal (should be optional); set ApResidPSF to 0.0 if PSF stars not available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120627/psphot/src/psphotReadoutMinimal.c

    r34172 r34179  
    2525    // Generate the mask and weight images, including the user-defined analysis region of interest
    2626    psphotSetMaskAndVariance (config, view, filerule);
     27
     28    // only subtract background if needed?
     29    if (1) {
     30      // generate a background model (median, smoothed image)
     31      if (!psphotModelBackground (config, view, filerule)) {
     32        return psphotReadoutCleanup (config, view, filerule);
     33      }
     34      if (!psphotSubtractBackground (config, view, filerule)) {
     35        return psphotReadoutCleanup (config, view, filerule);
     36      }
     37    }
    2738
    2839    // load the psf model, if suppled.  FWHM_X,FWHM_Y,etc are saved on readout->analysis
Note: See TracChangeset for help on using the changeset viewer.