IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 30, 2009, 11:58:26 AM (17 years ago)
Author:
bills
Message:

add two now magicdstool modes

-toremove gives list of images for which back images need to be deleted
-torestore gives list of images which pending restoration of destreaked pixels

File:
1 edited

Legend:

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

    r23974 r24284  
    114114    psMetadataAddBool(getskycellsArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false);
    115115
     116    // -toremove
     117    psMetadata *toremoveArgs = psMetadataAlloc();
     118    psMetadataAddS64(toremoveArgs, PS_LIST_TAIL, "-magic_ds_id", 0, "search by magic Destreak ID", 0);
     119    psMetadataAddS64(toremoveArgs, PS_LIST_TAIL, "-magic_id", 0, "search by magic ID", 0);
     120    psMetadataAddStr(toremoveArgs, PS_LIST_TAIL, "-label", PS_META_DUPLICATE_OK, "define label", NULL);
     121    psMetadataAddU64(toremoveArgs, PS_LIST_TAIL, "-limit", 0, "limit result set to N items", 0);
     122    psMetadataAddBool(toremoveArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false);
     123
     124    // -torestore
     125    psMetadata *torestoreArgs = psMetadataAlloc();
     126    psMetadataAddS64(torestoreArgs, PS_LIST_TAIL, "-magic_ds_id", 0, "search by magic Destreak ID", 0);
     127    psMetadataAddS64(torestoreArgs, PS_LIST_TAIL, "-magic_id", 0, "search by magic ID", 0);
     128    psMetadataAddStr(torestoreArgs, PS_LIST_TAIL, "-label", PS_META_DUPLICATE_OK, "define label", NULL);
     129    psMetadataAddU64(torestoreArgs, PS_LIST_TAIL, "-limit", 0, "limit result set to N items", 0);
     130    psMetadataAddBool(torestoreArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false);
     131
    116132    psFree(now);
    117133
     
    133149    PXOPT_ADD_MODE("-getskycells", "get skycell files ",
    134150                    MAGICDSTOOL_MODE_GETSKYCELLS, getskycellsArgs);
     151    PXOPT_ADD_MODE("-toremove", "backup images pending removal",
     152                    MAGICDSTOOL_MODE_TOREMOVE, toremoveArgs);
     153    PXOPT_ADD_MODE("-torestore", "images pending restore of exicsed streak pixels",
     154                    MAGICDSTOOL_MODE_TORESTORE, torestoreArgs);
    135155
    136156    if (!pxGetOptions(stderr, argc, argv, config, modes, argSets)) {
Note: See TracChangeset for help on using the changeset viewer.