Changeset 25787
- Timestamp:
- Oct 6, 2009, 11:42:05 AM (17 years ago)
- Location:
- branches/pap/ppStack/src
- Files:
-
- 5 edited
-
ppStackCamera.c (modified) (1 diff)
-
ppStackCombinePrepare.c (modified) (3 diffs)
-
ppStackFiles.c (modified) (1 diff)
-
ppStackOptions.c (modified) (2 diffs)
-
ppStackOptions.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ppStack/src/ppStackCamera.c
r25519 r25787 294 294 targetPSF->save = true; 295 295 } 296 297 #if 0 298 // Unconvolved stack 299 pmFPAfile *unConv = pmFPAfileDefineOutput(config, fpa, "PPSTACK.OUTPUT.UNCONV"); 300 psFree(fpa); // Drop reference 301 if (!unConv) { 302 psError(PS_ERR_IO, false, _("Unable to generate output file from PPSTACK.OUTPUT.UNCONV")); 303 return false; 304 } 305 if (unConv->type != PM_FPA_FILE_IMAGE) { 306 psError(PS_ERR_IO, true, "PPSTACK.OUTPUT.UNCONV is not of type IMAGE"); 307 return false; 308 } 309 unConv->save = true; 310 311 if (!pmFPAAddSourceFromFormat(fpa, "Stack", unConv->format)) { 312 psError(PS_ERR_UNKNOWN, false, "Unable to generate output FPA."); 313 psFree(fpa); 314 return false; 315 } 316 #endif 296 317 297 318 // Output JPEGs -
branches/pap/ppStack/src/ppStackCombinePrepare.c
r23576 r25787 33 33 pmCell *outCell = pmFPAfileThisCell(config->files, view, "PPSTACK.OUTPUT"); // Output cell 34 34 options->outRO = pmReadoutAlloc(outCell); // Output readout 35 options->unconvRO = pmReadoutAlloc(outCell); // Unconvolved readout 35 36 psFree(view); 36 37 … … 39 40 psString maskBadStr = psMetadataLookupStr(NULL, recipe, "MASK.BAD"); // Name of bits to mask for bad 40 41 psImageMaskType maskBad = pmConfigMaskGet(maskBadStr, config); // Bits to mask for bad pixels 42 41 43 if (!pmReadoutStackDefineOutput(options->outRO, col0, row0, numCols, numRows, true, true, maskBad)) { 42 44 psError(PS_ERR_UNKNOWN, false, "Unable to prepare output."); … … 44 46 } 45 47 48 options->unconvRO->image = psImageCopy(NULL, options->outRO->image, PS_TYPE_F32); 49 // options->unconvRO->mask = psImageCopy(NULL, options->outRO->mask, PS_TYPE_IMAGE_MASK); 50 options->unconvRO->col0 = options->outRO->col0; 51 options->unconvRO->row0 = options->outRO->row0; 52 53 54 46 55 return true; 47 56 } -
branches/pap/ppStack/src/ppStackFiles.c
r23357 r25787 22 22 /// Output files for the combination 23 23 static char *filesCombine[] = { "PPSTACK.OUTPUT", "PPSTACK.OUTPUT.MASK", "PPSTACK.OUTPUT.VARIANCE", 24 "PPSTACK. OUTPUT.JPEG1", "PPSTACK.OUTPUT.JPEG2", NULL };24 "PPSTACK.UNCONV", "PPSTACK.OUTPUT.JPEG1", "PPSTACK.OUTPUT.JPEG2", NULL }; 25 25 26 26 /// Files for photometry -
branches/pap/ppStack/src/ppStackOptions.c
r23573 r25787 26 26 psFree(options->covariances); 27 27 psFree(options->outRO); 28 psFree(options->unconvRO); 28 29 psFree(options->inspect); 29 30 psFree(options->rejected); … … 56 57 options->covariances = NULL; 57 58 options->outRO = NULL; 59 options->unconvRO = NULL; 58 60 options->inspect = NULL; 59 61 options->rejected = NULL; -
branches/pap/ppStack/src/ppStackOptions.h
r23573 r25787 29 29 // Combine initial 30 30 pmReadout *outRO; // Output readout 31 pmReadout *unconvRO; // Unconvolved readout 31 32 psArray *inspect; // Array of arrays of pixels to inspect 32 33 // Rejection
Note:
See TracChangeset
for help on using the changeset viewer.
