Changeset 35846 for trunk/ppImage
- Timestamp:
- Jul 22, 2013, 12:21:11 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageLoop.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageLoop.c
r35533 r35846 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) { 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) { 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.
