IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 27, 2008, 5:38:21 PM (18 years ago)
Author:
Paul Price
Message:

Adding recipe options to choose the suffix for temporary files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackArguments.c

    r16622 r16704  
    124124    psMetadataAddBool(arguments, PS_LIST_TAIL, "-variance", 0, "Use variance for rejection?", false);
    125125    psMetadataAddBool(arguments, PS_LIST_TAIL, "-safe", 0, "Play safe with small numbers of pixels to combine?", false);
     126    psMetadataAddStr(arguments, PS_LIST_TAIL, "-temp-image", 0, "Suffix for temporary images", NULL);
     127    psMetadataAddStr(arguments, PS_LIST_TAIL, "-temp-mask", 0, "Suffix for temporary masks", NULL);
     128    psMetadataAddStr(arguments, PS_LIST_TAIL, "-temp-weight", 0, "Suffix for temporary weight maps", NULL);
     129    psMetadataAddBool(arguments, PS_LIST_TAIL, "-temp-delete", 0, "Delete temporary files on completion?", false);
    126130
    127131    if (argc == 1 || !psArgumentParse(arguments, &argc, argv) || argc != 3) {
     
    188192    }
    189193
     194    valueArgStr(config, arguments, "-temp-image",  "TEMP.IMAGE",  config->arguments);
     195    valueArgStr(config, arguments, "-temp-mask",   "TEMP.MASK",   config->arguments);
     196    valueArgStr(config, arguments, "-temp-weight", "TEMP.WEIGHT", config->arguments);
     197
     198    if (psMetadataLookupBool(NULL, arguments, "-temp-delete") ||
     199        psMetadataLookupBool(NULL, recipe, "TEMP.DELETE")) {
     200        psMetadataAddBool(config->arguments, PS_LIST_TAIL, "TEMP.DELETE", 0,
     201                          "Delete temporary files on completion?", true);
     202    }
     203
     204
    190205    psTrace("ppStack", 1, "Done reading command-line arguments\n");
    191206    psFree(arguments);
Note: See TracChangeset for help on using the changeset viewer.