IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10042


Ignore:
Timestamp:
Nov 16, 2006, 6:45:47 PM (19 years ago)
Author:
jhoblitt
Message:

stub out -copydone options

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r10036 r10042  
    250250    PS_ASSERT_PTR_NON_NULL(config, false);
    251251
     252    bool status = false;
     253    psString filesetid = psMetadataLookupStr(&status, config->args, "-filesetid");
     254    if (!status) {
     255        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -filesetid");
     256        return false;
     257    }
     258    if (!filesetid) {
     259        psError(PS_ERR_UNKNOWN, true, "-filesetid is required");
     260        return false;
     261    }
     262
     263    psString camera = psMetadataLookupStr(&status, config->args, "-inst");
     264    if (!status) {
     265        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -inst");
     266        return NULL;
     267    }
     268    if (!camera) {
     269        psError(PS_ERR_UNKNOWN, true, "-inst is required");
     270        return NULL;
     271    }
     272
     273    psString telescope = psMetadataLookupStr(&status, config->args, "-telescope");
     274    if (!status) {
     275        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -telescope");
     276        return NULL;
     277    }
     278    if (!telescope) {
     279        psError(PS_ERR_UNKNOWN, true, "-telescope is required");
     280        return NULL;
     281    }
     282
     283    psString class = psMetadataLookupStr(&status, config->args, "-class");
     284    if (!status) {
     285        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -class");
     286        return NULL;
     287    }
     288    if (!class) {
     289        psError(PS_ERR_UNKNOWN, true, "-class is required");
     290        return NULL;
     291    }
     292
     293    psString class_id = psMetadataLookupStr(&status, config->args, "-class_id");
     294    if (!status) {
     295        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -class_id");
     296        return NULL;
     297    }
     298    if (!class_id) {
     299        psError(PS_ERR_UNKNOWN, true, "-class_id is required");
     300        return NULL;
     301    }
     302
     303    psString uri = psMetadataLookupStr(&status, config->args, "-uri");
     304    if (!status) {
     305        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -uri");
     306        return false;
     307    }
     308    if (!uri) {
     309        psError(PS_ERR_UNKNOWN, true, "-uri is required");
     310        return false;
     311    }
     312
     313    // need to know exp_id, camera, telescope, class, class_id (to find the
     314    // pzPendingImfile entry and the URI for the newImfile entry.
     315 
    252316#if 0
    253317    // we don't have to operate on complete frames here as it's ok to start
  • trunk/ippTools/src/pztoolConfig.c

    r10025 r10042  
    8181    // -copydone
    8282    psMetadata *copydoneArgs = psMetadataAlloc();
    83     psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-exp_tag", 0,
    84             "define exposure ID", NULL);
     83    psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-exp_id", 0,
     84            "define exposure ID", NULL);
     85    psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-inst", 0,
     86            "define camera ID", NULL);
     87    psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-telescope", 0,
     88            "define telescope ID", NULL);
    8589    psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-class", 0,
    8690            "define class", NULL);
    8791    psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-class_id", 0,
    8892            "define class_id", NULL);
    89     psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-suri", 0,
     93    psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-uri", 0,
    9094            "define storage uri", NULL);
    9195
Note: See TracChangeset for help on using the changeset viewer.