- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotStackImageLoop.c (modified) (3 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20111122/psphot merged: 33070-33071,33086,33088,33094-33095,33612,33640 /branches/eam_branches/ipp-20120405/psphot (added) merged: 33946,33953
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot/src
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/psphot/src/psphotStackImageLoop.c
- Property svn:mergeinfo changed
r33415 r34041 30 30 } 31 31 32 psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE); 33 bool useRaw = psMetadataLookupBool (NULL, recipe, "PSPHOT.STACK.USE.RAW"); 34 if (useRaw && inputRaw == NULL) { 35 psLogMsg ("psphot", 1, "PSPHOT.STACK.USE.RAW set but no raw input."); 36 useRaw = false; 37 } 38 32 39 pmFPAview *view = pmFPAviewAlloc (0); 33 40 34 // XXX for now, just load the full set of images up front 41 42 // XXX for now, just load the full set of images up front except for EXPNUM which we defer 43 pmFPAfileActivate (config->files, false, "PSPHOT.STACK.EXPNUM.RAW"); 44 pmFPAfileActivate (config->files, false, "PSPHOT.STACK.EXPNUM.CNV"); 35 45 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for fpa in psphot."); 36 46 … … 86 96 UpdateHeadersForChip(config, view); 87 97 88 // save output which is saved at the chip level 89 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed output for Chip in psphot."); 98 // Defer output until we have performed psphotSetNFrames() 99 pmFPAfileActivate (config->files, false, NULL); 100 101 // Iterate up 102 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed pmFPAfileIOChecks for Chip in psphot."); 90 103 } 91 104 psMemDump("doneloop"); … … 93 106 UpdateHeadersForFPA(config, view); 94 107 95 // save output which is saved at the fpa level 108 // Iterate up output which is saved at the fpa level 109 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed ouput pmFPAfileIOChecks FPA in psphot."); 110 111 // Load the appropriate EXPNUM image 112 pmFPAfileActivate (config->files, true, useRaw ? "PSPHOT.STACK.EXPNUM.RAW" : "PSPHOT.STACK.EXPNUM.CNV"); 113 114 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for fpa EXPNUM in psphot."); 115 116 // for psphot, we force data to be read at the chip level 117 while ((chip = pmFPAviewNextChip (view, input->fpa, 1)) != NULL) { 118 psLogMsg ("psphot", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 119 if (! chip->process || ! chip->file_exists) { continue; } 120 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for Chip EXPNUM in psphotStack."); 121 122 // there is now only a single chip (multiple readouts?). loop over it and process 123 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) { 124 psLogMsg ("psphot", 5, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 125 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE ("failed input for Cell in psphotStack."); 126 127 // process each of the readouts 128 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 129 psLogMsg ("psphot", 6, "Readout %d: %x %x\n", view->readout, cell->file_exists, cell->process); 130 if (! readout->data_exists) { continue; } 131 132 if (!psphotSetNFrames (config, view, useRaw ? inputRaw->name : inputCnv->name)) ESCAPE ("failed to setNFrames."); 133 } 134 } 135 // now activate all files to trigger final output 136 pmFPAfileActivate (config->files, true, NULL); 137 138 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed output for Chip in psphot."); 139 } 96 140 if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed ouput for FPA in psphot."); 97 141
Note:
See TracChangeset
for help on using the changeset viewer.
