IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 19, 2006, 3:13:11 PM (20 years ago)
Author:
drobbin
Message:

edited files to reflect changes & patches applied by IFA. Currently fixing testing procedures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/fits/tst_psFits.c

    r6767 r6912  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2006-04-04 19:52:47 $
     8*  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2006-04-20 01:13:11 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    391391        // check that the image is associated to the extension moved, i.e.,
    392392        // did we really move to the proper extension?
    393         psImage* image = psFitsReadImage(NULL, fits,region,0);
     393        psImage* image = NULL;
     394        image = psFitsReadImage(fits,region,0);
    394395
    395396        if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
     
    424425        // check that the image is associated to the extension moved, i.e.,
    425426        // did we really move to the proper extension?
    426         psImage* image = psFitsReadImage(NULL, fits,region,0);
     427        psImage* image = NULL;
     428        image = psFitsReadImage(fits,region,0);
    427429
    428430        if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
     
    526528        // check that the image is associated to the extension moved, i.e.,
    527529        // did we really move to the proper extension?
    528         psImage* image = psFitsReadImage(NULL, fits,region,0);
    529 
     530        psImage* image = NULL;
     531        image = psFitsReadImage(fits,region,0);
    530532        if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
    531533            psError(PS_ERR_UNKNOWN, true,
     
    548550        // check that the image is associated to the extension moved, i.e.,
    549551        // did we really move to the proper extension?
    550         psImage* image = psFitsReadImage(NULL, fits,region,0);
     552        psImage* image = NULL;
     553        image = psFitsReadImage(fits,region,0);
    551554
    552555        if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
     
    580583        // check that the image is associated to the extension moved, i.e.,
    581584        // did we really move to the proper extension?
    582         psImage* image = psFitsReadImage(NULL, fits,region,0);
     585        psImage* image = NULL;
     586        image = psFitsReadImage(fits,region,0);
    583587
    584588        if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
     
    610614        // check that the image is associated to the extension moved, i.e.,
    611615        // did we really move to the proper extension?
    612         psImage* image = psFitsReadImage(NULL, fits,region,0);
     616        psImage* image = NULL;
     617        image = psFitsReadImage(fits,region,0);
    613618
    614619        if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
     
    14481453        fits = psFitsOpen(filename,"r"); \
    14491454        psRegion reg = {readM0, readM, readN0, readN}; \
    1450         img = psFitsReadImage(img, fits, reg, 0); \
    1451         img3 = psFitsReadImage(img3, fits, reg, 1); \
     1455        img = psFitsReadImage(fits, reg, 0); \
     1456        img3 = psFitsReadImage(fits, reg, 1); \
    14521457        if (img3 == NULL) { \
    14531458            psError(PS_ERR_UNKNOWN, true,"Failed to read test image %s",filename); \
     
    14771482        img3 = NULL; \
    14781483        psFitsMoveExtNum(fits,1, false); \
    1479         img3 = psFitsReadImage(img3, fits, reg, 0); \
    1480         img = psFitsReadImage(img, fits, reg, 1); \
     1484        img3 = psFitsReadImage(fits, reg, 0); \
     1485        img = psFitsReadImage(fits, reg, 1); \
    14811486        if (img == NULL) { \
    14821487            psError(PS_ERR_UNKNOWN, true,"Failed to read test image %s",filename); \
     
    15301535                          0,0,0,0
    15311536                      };
    1532     if(psFitsReadImage(NULL,NULL,region,0) != NULL) {
     1537    if(psFitsReadImage(NULL,region,0) != NULL) {
    15331538        psError(PS_ERR_UNKNOWN,true,"Did not return NULL for NULL psFits");
    15341539        return 100;
     
    15961601    psRegion region = {0,0,0,0};
    15971602    fits = psFitsOpen("tmpImages/writeTest.fits","r");
    1598     img = psFitsReadImage(NULL, fits, region, 0);
     1603    img = NULL;
     1604    img = psFitsReadImage(fits, region, 0);
    15991605    if (img == NULL) {
    16001606        psError(PS_ERR_UNKNOWN, true,"Could not read in writeTest.fits.");
Note: See TracChangeset for help on using the changeset viewer.