IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 7, 2009, 4:50:25 PM (17 years ago)
Author:
Paul Price
Message:

Merging branches/pap from r23739 onto trunk. No conflicts, ppSub builds fine.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ppSub

  • trunk/ppSub/src

    • Property svn:ignore
      •  

        old new  
        1010stamp-h1
        1111ppSubKernel
         12ppSubErrorCodes.h
         13ppSubErrorCodes.c
  • trunk/ppSub/src/ppSubBackground.c

    r23287 r23740  
    2222#include "ppSub.h"
    2323
    24 bool ppSubBackground(pmConfig *config, const pmFPAview *view)
     24bool ppSubBackground(pmConfig *config)
    2525{
    2626    psAssert(config, "Require configuration");
    27     psAssert(view, "Require view");
    2827
    2928    bool mdok; // Status of metadata lookups
     
    3635    psImageMaskType maskBad = pmConfigMaskGet("BLANK", config); // Bits to mask
    3736
     37    pmFPAview *view = ppSubViewReadout(); // View to readout
    3838    pmReadout *outRO = pmFPAfileThisReadout(config->files, view, "PPSUB.OUTPUT"); // Output image
    3939    pmReadout *modelRO = pmFPAfileThisReadout(config->files, view, "PSPHOT.BACKMDL"); // Background model
     
    4444        if (!psphotModelBackground(config, view, "PPSUB.OUTPUT")) {
    4545            psError(PS_ERR_UNKNOWN, false, "Unable to model background");
     46            psFree(view);
    4647            return false;
    4748        }
     
    5051        if (!modelRO) {
    5152            psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find background model");
     53            psFree(view);
    5254            return false;
    5355        }
    5456    }
     57    psFree(view);
     58
    5559    psImageBinning *binning = psMetadataLookupPtr(&mdok, modelRO->analysis,
    5660                                                  "PSPHOT.BACKGROUND.BINNING"); // Binning for model
Note: See TracChangeset for help on using the changeset viewer.