Changeset 36071 for branches/eam_branches/ipp-20130711/ppImage/src
- Timestamp:
- Aug 30, 2013, 4:48:58 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130711/ppImage/src
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ppImageDetrendReadout.c (modified) (2 diffs)
-
ppImageLoop.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130711/ppImage/src
- Property svn:mergeinfo changed
/trunk/ppImage/src (added) merged: 35846,35849-35850,35917
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130711/ppImage/src/ppImageDetrendReadout.c
r35685 r36071 61 61 psImageMaskType satMask = options->doMaskSat ? options->satMask : 0; 62 62 psImageMaskType lowMask = options->doMaskLow ? options->lowMask : 0; 63 pmReadoutGenerateMask(input, satMask, lowMask); 63 if (!pmReadoutGenerateMask(input, satMask, lowMask)) { 64 psError(PS_ERR_UNKNOWN, false, "Unable to generate a mask."); 65 psFree(detview); 66 return false; 67 } 64 68 } 65 69 // apply the externally supplied mask to the input->mask pixels … … 208 212 } 209 213 210 pmReadoutGenerateVariance(input, noiseImage, true); 214 if (!pmReadoutGenerateVariance(input, noiseImage, true)) { 215 psError(PS_ERR_UNKNOWN, false, "Unable to generate a variance image."); 216 psFree(detview); 217 return false; 218 } 211 219 psFree (noiseImage); 212 220 } -
branches/eam_branches/ipp-20130711/ppImage/src/ppImageLoop.c
r35533 r36071 41 41 ESCAPE("load failure for FPA"); 42 42 } 43 43 44 44 pmChip *chip; // Chip from FPA 45 45 while ((chip = pmFPAviewNextChip(view, input->fpa, 1)) != NULL) { … … 134 134 ESCAPE("Unable to degrade MD image to 3pi"); 135 135 } 136 136 137 } 137 138 … … 156 157 ESCAPE("Unable to free detrend images"); 157 158 } 159 158 160 } 159 161 // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT … … 168 170 } 169 171 } 172 170 173 // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT 171 174 if (!ppImageFringeFree (config, view)) { … … 218 221 } 219 222 } 220 223 221 224 // these may be used by ppImageSubtractBackground. 222 225 // if these are defined as internal files, drop them here … … 232 235 233 236 // binning (used for display) must take place after the background is replaced, if desired 234 if (!ppImageRebinChip(config, view, options, "PPIMAGE.BIN1")) { 237 if ((options->Bin1FITS)||(options->Bin1JPEG)||(options->FPA1FITS)) { 238 if (!ppImageRebinChip(config, view, options, "PPIMAGE.BIN1")) { 235 239 ESCAPE("Unable to bin chip (level 1)."); 236 } 237 if (!ppImageRebinChip(config, view, options, "PPIMAGE.BIN2")) { 240 } 241 } 242 if ((options->Bin2FITS)||(options->Bin2JPEG)||(options->FPA2FITS)) { 243 if (!ppImageRebinChip(config, view, options, "PPIMAGE.BIN2")) { 238 244 ESCAPE("Unable to bin chip (level 2)."); 239 } 245 } 246 } 247 240 248 if (options->doBackgroundContinuity) { 241 249 pmFPAfile *out = psMetadataLookupPtr(NULL, config->files, "PPIMAGE.BACKMDL"); 242 250 pmFPAfileCopyView(out->fpa,out->src,view); 243 251 } 252 244 253 // Close cells (XXX shouldn't pmFPAfileClose iterate down as needed?) 245 254 view->cell = -1; … … 263 272 ESCAPE("failure in Background Mosaic"); 264 273 } 265 274 266 275 // generate the full-scale FPA mosaic 267 if (!ppImageMosaicFPA(config, options, "PPIMAGE.OUTPUT.FPA1", "PPIMAGE.BIN1")) { 276 if ((options->FPA1FITS)||(options->Bin1JPEG)) { 277 if (!ppImageMosaicFPA(config, options, "PPIMAGE.OUTPUT.FPA1", "PPIMAGE.BIN1")) { 268 278 ESCAPE("failure in FPA Mosaic (level 1)"); 269 } 270 if (!ppImageMosaicFPA(config, options, "PPIMAGE.OUTPUT.FPA2", "PPIMAGE.BIN2")) { 279 } 280 } 281 if ((options->FPA2FITS)||(options->Bin2JPEG)) { 282 if (!ppImageMosaicFPA(config, options, "PPIMAGE.OUTPUT.FPA2", "PPIMAGE.BIN2")) { 271 283 ESCAPE("failure in FPA Mosaic (level 2)"); 284 } 272 285 } 273 286 … … 283 296 ppImageFileCheck(config); 284 297 } 285 298 286 299 // Calculate summary statistics from FPA Metadata 287 300 if (!ppImageMetadataStats(config, stats, options)) {
Note:
See TracChangeset
for help on using the changeset viewer.
