IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 7, 2009, 7:10:01 PM (17 years ago)
Author:
eugene
Message:

handle cases where mask files are missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/censorObjects/src/censorReadout.c

    r24695 r24714  
    1313# include "censor.h"
    1414
    15 bool censorReadout (pmReadout *readout, pmConfig *config, const pmFPAview *view) {
     15bool censorReadout (pmReadout *readout, pmConfig *config, const pmFPAview *view, bool badMaskFile) {
    1616
    1717    bool status;
     18
     19    // if there is no mask file for this readout drop all sources
     20    if (badMaskFile) {
     21      psMetadataRemoveKey (readout->analysis, "PSPHOT.SOURCES");
     22      return true;
     23    }
    1824
    1925    // select the current recipe
Note: See TracChangeset for help on using the changeset viewer.