Changeset 23740 for trunk/ppSub/src/ppSubBackground.c
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap merged: 23690,23704,23711,23719,23723,23730-23735
- Property svn:mergeinfo changed
-
trunk/ppSub
- Property svn:mergeinfo changed
/branches/pap/ppSub merged: 23704,23711,23719,23723,23730,23732-23734
- Property svn:mergeinfo changed
-
trunk/ppSub/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppSubKernel 12 ppSubErrorCodes.h 13 ppSubErrorCodes.c
-
- Property svn:ignore
-
trunk/ppSub/src/ppSubBackground.c
r23287 r23740 22 22 #include "ppSub.h" 23 23 24 bool ppSubBackground(pmConfig *config , const pmFPAview *view)24 bool ppSubBackground(pmConfig *config) 25 25 { 26 26 psAssert(config, "Require configuration"); 27 psAssert(view, "Require view");28 27 29 28 bool mdok; // Status of metadata lookups … … 36 35 psImageMaskType maskBad = pmConfigMaskGet("BLANK", config); // Bits to mask 37 36 37 pmFPAview *view = ppSubViewReadout(); // View to readout 38 38 pmReadout *outRO = pmFPAfileThisReadout(config->files, view, "PPSUB.OUTPUT"); // Output image 39 39 pmReadout *modelRO = pmFPAfileThisReadout(config->files, view, "PSPHOT.BACKMDL"); // Background model … … 44 44 if (!psphotModelBackground(config, view, "PPSUB.OUTPUT")) { 45 45 psError(PS_ERR_UNKNOWN, false, "Unable to model background"); 46 psFree(view); 46 47 return false; 47 48 } … … 50 51 if (!modelRO) { 51 52 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find background model"); 53 psFree(view); 52 54 return false; 53 55 } 54 56 } 57 psFree(view); 58 55 59 psImageBinning *binning = psMetadataLookupPtr(&mdok, modelRO->analysis, 56 60 "PSPHOT.BACKGROUND.BINNING"); // Binning for model
Note:
See TracChangeset
for help on using the changeset viewer.
