IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16661


Ignore:
Timestamp:
Feb 26, 2008, 1:25:45 PM (18 years ago)
Author:
jhoblitt
Message:

implement -addexp

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r16660 r16661  
    299299    PS_ASSERT_PTR_NON_NULL(config, false);
    300300
     301    // required
     302    PXOPT_LOOKUP_STR(corr_id, config->args, "-corr_id", true, false);
     303    PXOPT_LOOKUP_STR(chip_id, config->args, "-chip_id", true, false);
     304
     305    if (!flatcorrExpInsert(config->dbh,
     306            (psS64)atoll(corr_id),
     307            (psS64)atoll(chip_id)
     308        )) {
     309        psError(PS_ERR_UNKNOWN, false, "database error");
     310        return false;
     311    }
     312
    301313    return true;
    302314}
  • trunk/ippTools/src/flatcorrConfig.c

    r16660 r16661  
    148148    // -addexp
    149149    psMetadata *addexpArgs = psMetadataAlloc();
     150    psMetadataAddStr(addexpArgs, PS_LIST_TAIL, "-corr_id", 0,
     151            "define Flat Correction ID (required)", NULL);
     152    psMetadataAddStr(addexpArgs, PS_LIST_TAIL, "-chip_id", 0,
     153            "define Chip ID (required)", NULL);
    150154
    151155    // -pending
Note: See TracChangeset for help on using the changeset viewer.