IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26078


Ignore:
Timestamp:
Nov 9, 2009, 3:37:56 PM (17 years ago)
Author:
Paul Price
Message:

Make temporary directory a command-line option.

Location:
trunk/ppStack/src
Files:
2 edited

Legend:

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

    r26076 r26078  
    185185    psMetadataAddF32(arguments, PS_LIST_TAIL, "-zp-star-sys-1", 0, "Estimated systematic error; pass 1", NAN);
    186186    psMetadataAddF32(arguments, PS_LIST_TAIL, "-zp-star-sys-2", 0, "Estimated systematic error; pass 2", NAN);
     187    psMetadataAddStr(arguments, PS_LIST_TAIL, "-temp-dir", 0, "Directory for temporary images", NULL);
    187188    psMetadataAddStr(arguments, PS_LIST_TAIL, "-temp-image", 0, "Suffix for temporary images", NULL);
    188189    psMetadataAddStr(arguments, PS_LIST_TAIL, "-temp-mask", 0, "Suffix for temporary masks", NULL);
  • trunk/ppStack/src/ppStackSetup.c

    r26076 r26078  
    4747
    4848    // Generate temporary names for convolved images
    49     const char *tempDir = psMetadataLookupStr(NULL, config->site, "TEMP.DIR"); // Directory for temp images
     49    const char *tempDir = psMetadataLookupStr(NULL, config->arguments, "-temp-dir"); // Directory for temps
     50    if (!tempDir) {
     51        tempDir = psMetadataLookupStr(NULL, config->site, "TEMP.DIR");
     52    }
    5053    if (!tempDir) {
    5154        psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Unable to find TEMP.DIR in site configuration");
Note: See TracChangeset for help on using the changeset viewer.