IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 4, 2005, 11:37:01 AM (21 years ago)
Author:
Paul Price
Message:

Updated to psLib rel5alpha1

File:
1 edited

Legend:

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

    r2500 r3375  
    3535#ifdef TESTING
    3636        // Write error image out to check
    37         char errfile[MAXCHAR];          // Filename of error image
    38         sprintf(errfile,"%s.err",config->inputs->data[i]);
    39         psImageWriteSection(error,0,0,0,NULL,0,errfile);
     37        char errName[MAXCHAR];          // Filename of error image
     38        sprintf(errName,"%s.err",config->inputs->data[i]);
     39        psFits *errorFile = psFitsAlloc(errName);
     40        if (!psFitsWriteImage(errorFile, NULL, error, 0, NULL)) {
     41            psErrorStackPrint(stderr, "Unable to write image: %s\n", errName);
     42        }
     43        psTrace("stac", 1, "Error image written to %s\n", errName);
     44        psFree(errorFile);
    4045#endif
    4146
Note: See TracChangeset for help on using the changeset viewer.