IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 25, 2007, 5:09:20 PM (19 years ago)
Author:
eugene
Message:

changed the pmFPAfileDefine functions to not require an input status value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpParseCamera.c

    r12771 r13528  
    1010    status = false;
    1111    pmFPAfile *input = pmFPAfileDefineFromArgs (&status, config, "PSWARP.INPUT", "INPUT");
    12     if (!input) {
     12    if (!input || !status) {
    1313        psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.INPUT");
    1414        return false;
     
    1717    // the input image(s) are required arguments; they define the camera
    1818    status = false;
    19     pmFPAfileDefineFromArgs (&status, config, "PSWARP.ASTROM", "ASTROM");
    20     if (status) {
     19    pmFPAfile *astrom = pmFPAfileDefineFromArgs (&status, config, "PSWARP.ASTROM", "ASTROM");
     20    if (!status) {
     21        psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     22        return NULL;
     23    }
     24    if (astrom) {
    2125        psLogMsg ("pswarp", 3, "using supplied astrometry\n");
    2226    } else {
     
    2529
    2630    // the mask is not required - but must conform to input camera
    27     pmFPAfile *inMask = pmFPAfileBindFromArgs(NULL, input, config, "PSWARP.MASK", "MASK");
     31    pmFPAfile *inMask = pmFPAfileBindFromArgs(&status, input, config, "PSWARP.MASK", "MASK");
     32    if (!status) {
     33        psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     34        return NULL;
     35    }
    2836    if (!inMask) {
    2937        psLogMsg ("pswarp", 3, "no mask supplied\n");
    3038    }
    3139
    32     pmFPAfile *inWeight = pmFPAfileBindFromArgs(NULL, input, config, "PSWARP.WEIGHT", "WEIGHT");
     40    pmFPAfile *inWeight = pmFPAfileBindFromArgs(&status, input, config, "PSWARP.WEIGHT", "WEIGHT");
     41    if (!status) {
     42        psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     43        return NULL;
     44    }
    3345    if (!inWeight) {
    3446        psLogMsg ("pswarp", 3, "no weight supplied\n");
Note: See TracChangeset for help on using the changeset viewer.