IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 5, 2015, 12:36:49 PM (11 years ago)
Author:
bills
Message:

Code to implement update mode in psphotStack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotStackImageLoop.c

    r36839 r38384  
    3030
    3131    psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE);
     32    bool updateMode = psMetadataLookupBool(&status, config->arguments, "PSPHOT.STACK.UPDATEMODE");
    3233
    3334    // just load the full set of images up front except for EXPNUM which we defer
     
    6162
    6263                // 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                }
    6877
    6978                UpdateHeadersForReadout(config, view);
Note: See TracChangeset for help on using the changeset viewer.