IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 20, 2014, 5:38:01 PM (12 years ago)
Author:
watersc1
Message:

Addition of a -show mode to detselect, which displays a catalog of detrends for a specified camera/telescope. The return catalog lists the constraints on the use of this detrend. It does not filter out superceded detrends, although they are sorted in descending order, so the first in the list that matches the image constraints is the one detselect -search would yield.

File:
1 edited

Legend:

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

    r18561 r36543  
    6565    psMetadataAddStr(selectArgs, PS_LIST_TAIL, "-class_id", 0,                     "search by class ID", NULL);
    6666    psMetadataAddBool(selectArgs, PS_LIST_TAIL, "-simple",  0,                      "use the simple output format", false);
     67
     68    // -show
     69    psMetadata *showArgs = psMetadataAlloc();
     70    psMetadataAddStr(showArgs, PS_LIST_TAIL, "-inst",       0,       "search by camera", NULL);
     71    psMetadataAddStr(showArgs, PS_LIST_TAIL, "-telescope",  0,       "search by telescope", NULL);
     72    psMetadataAddStr(showArgs, PS_LIST_TAIL, "-det_type",   0,       "search by detrend type", NULL);
     73    psMetadataAddStr(showArgs, PS_LIST_TAIL, "-type",       0,       "search by detrend type (alias for -det_type)", NULL);
     74    psMetadataAddBool(showArgs, PS_LIST_TAIL, "-simple",     0,       "use the simple output format", false);
    6775   
    6876    psMetadata *argSets = psMetadataAlloc();
     
    7179    PXOPT_ADD_MODE("-search",  "search for an appropriate detrend", DETSELECT_MODE_SEARCH, searchArgs);
    7280    PXOPT_ADD_MODE("-select",  "retreive detrend information", DETSELECT_MODE_SELECT, selectArgs);
     81    PXOPT_ADD_MODE("-show",    "show all active detrends of this type with constraints", DETSELECT_MODE_SHOW, showArgs);
    7382
    7483    if (!pxGetOptions(stderr, argc, argv, config, modes, argSets)) {
Note: See TracChangeset for help on using the changeset viewer.