IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 14, 2011, 4:41:16 PM (15 years ago)
Author:
bills
Message:

Post the results to the data store. Make programs work with outputs in nebulous

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psvideophot/src/dumpvideo.c

    r32553 r32556  
    22#include <assert.h>
    33#include <pslib.h>
     4#include <psmodules.h>
    45
    56int main (int argc, char **argv) {
     
    910        exit (2);
    1011    }
     12
     13    pmConfig *config = pmConfigRead(&argc, argv, NULL);
     14    if (config == NULL) {
     15        psErrorStackPrint(stderr, "Can't find site configuration!\n");
     16        exit(EXIT_FAILURE);
     17    }
     18
     19
    1120
    1221    char *input   = argv[1];      // Input file name
     
    1928    }
    2029
    21     psFits *infile = psFitsOpen (input, "r"); // Input file
     30    psString inputResolved = pmConfigConvertFilename(input, config, false, false);
     31    psFits *infile = psFitsOpen (inputResolved, "r"); // Input file
    2232    if (!infile) {
    2333        fprintf (stderr, "Unable to open input file %s", input);
     
    2535    }
    2636
    27     psFits *outfile = psFitsOpen (output, "w"); // Output file
     37    psString outputResolved = pmConfigConvertFilename(output, config, true, true);
     38    psFits *outfile = psFitsOpen (outputResolved, "w"); // Output file
    2839    if (!outfile) {
    2940        fprintf (stderr, "Unable to open output file %s", output);
Note: See TracChangeset for help on using the changeset viewer.