IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7315


Ignore:
Timestamp:
Jun 2, 2006, 3:15:12 PM (20 years ago)
Author:
jhoblitt
Message:

change -addnormalized to require options -det_id, -class_id, -uri, -stats, & -recipe

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r7304 r7315  
    10751075        return false;
    10761076    }
     1077    if (!det_id) {
     1078        psError(PS_ERR_UNKNOWN, true, "-det_id is required");
     1079        return false;
     1080    }
    10771081    psString class_id = psMetadataLookupStr(&status, config->args, "-class_id");
    10781082    if (!status) {
     
    10801084        return false;
    10811085    }
     1086    if (!class_id) {
     1087        psError(PS_ERR_UNKNOWN, true, "-class_id is required");
     1088        return false;
     1089    }
    10821090    psString uri    = psMetadataLookupStr(&status, config->args, "-uri");
    10831091    if (!status) {
     
    10851093        return false;
    10861094    }
     1095    if (!uri) {
     1096        psError(PS_ERR_UNKNOWN, true, "-uri is required");
     1097        return false;
     1098    }
    10871099    psString recipe = psMetadataLookupStr(&status, config->args, "-recipe");
    10881100    if (!status) {
     
    10901102        return false;
    10911103    }
     1104    if (!recipe) {
     1105        psError(PS_ERR_UNKNOWN, true, "-recipe is required");
     1106        return false;
     1107    }
    10921108    psString stats = psMetadataLookupStr(&status, config->args, "-stats");
    10931109    if (!status) {
    10941110        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -stats");
     1111        return false;
     1112    }
     1113    if (!stats) {
     1114        psError(PS_ERR_UNKNOWN, true, "-stats is required");
    10951115        return false;
    10961116    }
  • trunk/ippTools/src/dettoolConfig.c

    r7304 r7315  
    122122    psMetadata *addnormalizedArgs = psMetadataAlloc();
    123123    psMetadataAddStr(addnormalizedArgs, PS_LIST_TAIL, "-det_id",  0,
    124         "define detrend ID", NULL);
     124        "define detrend ID (required)", NULL);
    125125    psMetadataAddStr(addnormalizedArgs, PS_LIST_TAIL, "-iter",  0,
    126126        "define iteration number", NULL);
    127127    psMetadataAddStr(addnormalizedArgs, PS_LIST_TAIL, "-class_id",  0,
    128         "define class ID", NULL);
     128        "define class ID (required)", NULL);
    129129    psMetadataAddStr(addnormalizedArgs, PS_LIST_TAIL, "-uri",  0,
    130         "define URI", NULL);
     130        "define URI (required)", NULL);
    131131    psMetadataAddStr(addnormalizedArgs, PS_LIST_TAIL, "-stats",  0,
    132         "define stat", NULL);
     132        "define stat (required)", NULL);
    133133    psMetadataAddStr(addnormalizedArgs, PS_LIST_TAIL, "-recipe",  0,
    134         "define recipe", NULL);
     134        "define recipe (required)", NULL);
    135135
    136136    // -normalized
Note: See TracChangeset for help on using the changeset viewer.