Changeset 38384 for trunk/psphot/src/psphotStackImageLoop.c
- Timestamp:
- Jun 5, 2015, 12:36:49 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotStackImageLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotStackImageLoop.c
r36839 r38384 30 30 31 31 psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE); 32 bool updateMode = psMetadataLookupBool(&status, config->arguments, "PSPHOT.STACK.UPDATEMODE"); 32 33 33 34 // just load the full set of images up front except for EXPNUM which we defer … … 61 62 62 63 // XXX for now, we assume there is only a single chip in the PHU: 63 if (!psphotStackReadout (config, view)) { 64 psError(psErrorCodeLast(), false, "failure in psphotStackReadout for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout); 65 psFree (view); 66 return false; 67 } 64 if (!updateMode) { 65 if (!psphotStackReadout (config, view)) { 66 psError(psErrorCodeLast(), false, "failure in psphotStackReadout for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout); 67 psFree (view); 68 return false; 69 } 70 } else { 71 if (!psphotStackUpdateReadout (config, view)) { 72 psError(psErrorCodeLast(), false, "failure in psphotStackReadout for chip %d, cell %d, readout %d\n", view->chip, view->cell, view->readout); 73 psFree (view); 74 return false; 75 } 76 } 68 77 69 78 UpdateHeadersForReadout(config, view);
Note:
See TracChangeset
for help on using the changeset viewer.
