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/shift.c

    r5743 r6771  
    9090    psRegion imageRegion = {0, 0, 0, 0}; // Region of image to read
    9191    psMetadata *header = psFitsReadHeader(NULL, imageFile); // FITS header
    92     psImage *image = psFitsReadImage(NULL, imageFile, imageRegion, 0);
     92    psImage *image = psFitsReadImage(imageFile, imageRegion, 0);
    9393    if (image == NULL) {
    9494        psErrorStackPrint(stderr, "Fatal error: Unable to read %s\n", inName);
     
    155155        psTrace("stac", 3, "Clipping %d NaN pixels to zero.\n", numPix);
    156156    }
    157     if (!psFitsWriteImage(outFile, header, transformed->data[0], 0)) {
     157    if (!psFitsWriteImage(outFile, header, transformed->data[0], 0, NULL)) {
    158158        psErrorStackPrint(stderr, "Unable to write image: %s\n", outName);
    159159    }
Note: See TracChangeset for help on using the changeset viewer.