IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 30, 2012, 2:11:49 PM (14 years ago)
Author:
bills
Message:

add new option to censorObjects where it simply reads the input smf file.
If it failes we can assume that the file is corrupt

File:
1 edited

Legend:

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

    r26331 r33626  
    4646    }
    4747
    48     // load the raw detection data (using PSPHOT.SOURCES filerule)
    49     // select subset of stars for astrometry
    50     if (!censorLoop (config)) {
    51         psErrorStackPrint(stderr, "error loading input data\n");
    52         psFree(config);
    53         exit(PS_EXIT_DATA_ERROR);
     48    bool status;
     49    bool checkInputOnly = psMetadataLookupBool(&status, config->arguments,
     50        "CHECK.INPUT.ONLY");
     51
     52    if (!checkInputOnly) {
     53        // load the raw detection data (using PSPHOT.SOURCES filerule)
     54        // select subset of stars for astrometry
     55        if (!censorLoop (config)) {
     56            psErrorStackPrint(stderr, "error loading input data\n");
     57            psFree(config);
     58            exit(PS_EXIT_DATA_ERROR);
     59        }
     60
     61        psLogMsg("censor", 3, "complete censor run: %f sec\n", psTimerMark ("complete"));
     62    } else {
     63        if (!checkInputLoop (config)) {
     64            psErrorStackPrint(stderr, "error loading input data\n");
     65            psFree(config);
     66            exit(PS_EXIT_DATA_ERROR);
     67        }
     68        psLogMsg("censor", 3, "complete check input run: %f sec\n", psTimerMark ("complete"));
    5469    }
    55 
    56     psLogMsg("censor", 3, "complete censor run: %f sec\n", psTimerMark ("complete"));
    5770
    5871    censorCleanup(config);
Note: See TracChangeset for help on using the changeset viewer.