IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2006, 12:06:11 PM (20 years ago)
Author:
Paul Price
Message:

Synching changes to psFitsReadImage (removed first argument) and psFitsWriteImage (added argument extname to end)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacRead.c

    r6485 r6771  
    2424        psTrace("stac.read.images", 2, "Reading input image %s....\n",filenames->data[i]);
    2525        psFits *imageFile = psFitsOpen(filenames->data[i], "r");
     26        if (!imageFile) {
     27            psError(PS_ERR_IO, false, "Unable to open FITS file %s.\n", filenames->data[i]);
     28            exit(EXIT_FAILURE);
     29        }
    2630        // We only read PHUs --- not mucking around with extensions for now
    2731        if (headers) {
    2832            (*headers)->data[i] = psFitsReadHeader(NULL, imageFile);
    2933        }
    30         psImage *image = psFitsReadImage(NULL, imageFile, imageRegion, 0);
     34        psImage *image = psFitsReadImage(imageFile, imageRegion, 0);
    3135        if (image == NULL) {
    3236            psErrorStackPrint(stderr,"Fatal error: Unable to read %s\n",filenames->data[i]);
Note: See TracChangeset for help on using the changeset viewer.