IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10403


Ignore:
Timestamp:
Dec 1, 2006, 1:46:10 PM (20 years ago)
Author:
jhoblitt
Message:

make -updateimfile -bg_* params optional per PPs request

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/regtool.c

    r10231 r10403  
    784784        return false;
    785785    }
     786
     787    // optional
    786788    psF64 bg = psMetadataLookupF64(&status, config->args, "-bg");
    787789    if (!status) {
     
    789791        return false;
    790792    }
    791     if (isnan(bg)) {
    792         psError(PS_ERR_UNKNOWN, true, "-bg is required");
    793         return false;
    794     }
     793
    795794    psF64 bg_stdev = psMetadataLookupF64(&status, config->args, "-bg_stdev");
    796795    if (!status) {
     
    798797        return false;
    799798    }
    800     if (isnan(bg_stdev)) {
    801         psError(PS_ERR_UNKNOWN, true, "-bg_stdev is required");
    802         return false;
    803     }
     799
    804800    psF64 bg_mean_stdev = psMetadataLookupF64(&status, config->args, "-bg_mean_stdev");
    805801    if (!status) {
     
    807803        return false;
    808804    }
    809     if (isnan(bg_mean_stdev)) {
    810         psError(PS_ERR_UNKNOWN, true, "-bg_mean_stdev is required");
    811         return false;
    812     }
     805
     806    // not optional
    813807    psF64 alt = psMetadataLookupF64(&status, config->args, "-alt");
    814808    if (!status) {
Note: See TracChangeset for help on using the changeset viewer.