IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6772


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

Synching to current version of psLib --- psFitsReadImage and psFitsWriteImage arguments needed to be updated.

Location:
trunk/pois/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/pois/src/pois.c

    r5742 r6772  
    6565        header = psFitsReadHeader(NULL, reference);
    6666    }
    67     psImage *refImage = psFitsReadImage(NULL, reference, imageRegion, 0);
     67    psImage *refImage = psFitsReadImage(reference, imageRegion, 0);
    6868    if (refImage == NULL) {
    6969        psErrorStackPrint(stderr, "Fatal error: unable to read %s\n", config->refFile);
     
    8484        header = psFitsReadHeader(NULL, input);
    8585    }
    86     psImage *inImage = psFitsReadImage(NULL, input, imageRegion, 0);
     86    psImage *inImage = psFitsReadImage(input, imageRegion, 0);
    8787    if (inImage == NULL) {
    8888        psErrorStackPrint(stderr, "Fatal error: unable to read %s\n", config->inFile);
     
    128128    // Write the mask out
    129129    psFits *maskFile = psFitsOpen("mask.fits", "w");
    130     if (!psFitsWriteImage(maskFile, NULL, mask, 0)) {
     130    if (!psFitsWriteImage(maskFile, NULL, mask, 0, NULL)) {
    131131        psErrorStackPrint(stderr, "Unable to write mask: mask.fits\n");
    132132    }
     
    196196        psImage *kernelImage = poisExtractKernel(solution, kernelBasisFunctions, 0.0, 0.0, config);
    197197        psFits *kernelFile = psFitsOpen(kernelName, "w");
    198         if (!psFitsWriteImage(kernelFile, NULL, kernelImage, 0)) {
     198        if (!psFitsWriteImage(kernelFile, NULL, kernelImage, 0, NULL)) {
    199199            psErrorStackPrint(stderr, "Unable to write kernel: %s\n", kernelName);
    200200        }
     
    242242    snprintf(convName, MAXCHAR, "%s.conv", config->outFile);
    243243    psFits *convFile = psFitsOpen(convName, "w");
    244     if (!psFitsWriteImage(convFile, NULL, convImage, 0)) {
     244    if (!psFitsWriteImage(convFile, NULL, convImage, 0, NULL)) {
    245245        psErrorStackPrint(stderr, "Unable to write convolved image: %s\n", convName);
    246246    }
     
    304304        sprintf(maskName, "%s.mask", config->outFile);
    305305        psFits *maskFile = psFitsOpen(maskName, "w");
    306         if (!psFitsWriteImage(maskFile, NULL, mask, 0)) {
     306        if (!psFitsWriteImage(maskFile, NULL, mask, 0, NULL)) {
    307307            psErrorStackPrint(stderr, "Unable to write image: %s\n", maskName);
    308308        }
     
    318318
    319319    psFits *subFile = psFitsOpen(config->outFile, "w");
    320     if (!psFitsWriteImage(subFile, header, subImage, 0)) {
     320    if (!psFitsWriteImage(subFile, header, subImage, 0, NULL)) {
    321321        psErrorStackPrint(stderr, "Unable to write subtracted image: %s\n", config->outFile);
    322322    }
  • trunk/pois/src/poisCalculateDeviations.c

    r6452 r6772  
    7979            snprintf(stampName, MAXCHAR, "stamp%d.fits", s);
    8080            psFits *stampFile = psFitsOpen(stampName, "w");
    81             if (!psFitsWriteImage(stampFile, NULL, subStampTrim, 0)) {
     81            if (!psFitsWriteImage(stampFile, NULL, subStampTrim, 0, NULL)) {
    8282                psErrorStackPrint(stderr, "Unable to write stamp: %s\n", stampName);
    8383            }
Note: See TracChangeset for help on using the changeset viewer.