IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8321


Ignore:
Timestamp:
Aug 14, 2006, 12:04:04 PM (20 years ago)
Author:
jhoblitt
Message:

add -exp_type to -updateimfile

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r8292 r8321  
    777777
    778778    bool status = false;
     779    psString exp_type = psMetadataLookupStr(&status, config->args, "-exp_type");
     780    if (!status) {
     781        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_type");
     782        return false;
     783    }
     784    if (!exp_type) {
     785        psError(PS_ERR_UNKNOWN, true, "-exp_type is required");
     786        return false;
     787    }
    779788    psString filter = psMetadataLookupStr(&status, config->args, "-filter");
    780789    if (!status) {
     
    891900        imfile->class_id,
    892901        imfile->uri,
     902        exp_type,
    893903        filter,
    894904        airmass,
  • trunk/ippTools/src/regtoolConfig.c

    r8308 r8321  
    9494    psMetadataAddStr(updateimfileArgs, PS_LIST_TAIL, "-class_id",  0,
    9595        "search by class ID", NULL);
     96    psMetadataAddStr(updateimfileArgs, PS_LIST_TAIL, "-exp_type",  0,
     97        "define exposure type", NULL);
    9698    psMetadataAddStr(updateimfileArgs, PS_LIST_TAIL, "-filter",  0,
    9799        "define filter ", NULL);
Note: See TracChangeset for help on using the changeset viewer.