IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 4, 2007, 11:27:39 AM (19 years ago)
Author:
Paul Price
Message:

Resolving file names, so as to be suitable for use with Nebulous

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeOptions.c

    r12733 r13246  
    100100    if (!config->camera) {
    101101        psArray *filenames = psMetadataLookupPtr(NULL, config->arguments, "INPUT"); // The input file names
    102         psFits *inFile = psFitsOpen(filenames->data[0], "r"); // The FITS file to read
     102        psString resolved = pmConfigConvertFilename(filenames->data[0], config, false); // Resolved file name
     103        psFits *inFile = psFitsOpen(resolved, "r"); // The FITS file to read
    103104        if (!inFile) {
    104             psError(PS_ERR_IO, false, "Unable to open input file %s to determine camera.\n",
    105                     (char *)filenames->data[0]);
     105            psError(PS_ERR_IO, false, "Unable to open input file %s to determine camera.\n", resolved);
     106            psFree(resolved);
     107            psFree(config);
    106108            exit(EXIT_FAILURE);
    107109        }
     110        psFree(resolved);
    108111        psMetadata *header = psFitsReadHeader(NULL, inFile); // The FITS (primary) header
    109112        psFitsClose(inFile);
Note: See TracChangeset for help on using the changeset viewer.