IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 1, 2006, 1:58:53 PM (19 years ago)
Author:
jhoblitt
Message:

make -updateimfile -bg_* params optional per PPs request (part 2)

File:
1 edited

Legend:

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

    r10403 r10404  
    951951        return false;
    952952    }
     953
     954    // optional
    953955    psF64 bg = psMetadataLookupF64(&status, config->args, "-bg");
    954956    if (!status) {
     
    956958        return false;
    957959    }
    958     if (isnan(bg)) {
    959         psError(PS_ERR_UNKNOWN, true, "-bg is required");
    960         return false;
    961     }
     960
    962961    psF64 bg_stdev = psMetadataLookupF64(&status, config->args, "-bg_stdev");
    963962    if (!status) {
     
    965964        return false;
    966965    }
    967     if (isnan(bg_stdev)) {
    968         psError(PS_ERR_UNKNOWN, true, "-bg_stdev is required");
    969         return false;
    970     }
     966
    971967    psF64 bg_mean_stdev = psMetadataLookupF64(&status, config->args, "-bg_mean_stdev");
    972968    if (!status) {
     
    974970        return false;
    975971    }
    976     if (isnan(bg_mean_stdev)) {
    977         psError(PS_ERR_UNKNOWN, true, "-bg_mean_stdev is required");
    978         return false;
    979     }
     972
     973    // not optional
    980974    psF64 alt = psMetadataLookupF64(&status, config->args, "-alt");
    981975    if (!status) {
Note: See TracChangeset for help on using the changeset viewer.