Changeset 23719 for branches/pap/ppSub/src/ppSubBackground.c
- Timestamp:
- Apr 6, 2009, 6:52:51 PM (17 years ago)
- Location:
- branches/pap/ppSub/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppSubBackground.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ppSub/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppSubKernel 12 ppSubErrorCodes.h 13 ppSubErrorCodes.c
-
- Property svn:ignore
-
branches/pap/ppSub/src/ppSubBackground.c
r23287 r23719 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.
