Changeset 6912 for trunk/psLib/test/fits/tst_psFits.c
- Timestamp:
- Apr 19, 2006, 3:13:11 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/fits/tst_psFits.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/fits/tst_psFits.c
r6767 r6912 6 6 * @author Robert DeSonia, MHPCC 7 7 * 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 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 391 391 // check that the image is associated to the extension moved, i.e., 392 392 // 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); 394 395 395 396 if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) { … … 424 425 // check that the image is associated to the extension moved, i.e., 425 426 // 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); 427 429 428 430 if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) { … … 526 528 // check that the image is associated to the extension moved, i.e., 527 529 // 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); 530 532 if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) { 531 533 psError(PS_ERR_UNKNOWN, true, … … 548 550 // check that the image is associated to the extension moved, i.e., 549 551 // 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); 551 554 552 555 if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) { … … 580 583 // check that the image is associated to the extension moved, i.e., 581 584 // 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); 583 587 584 588 if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) { … … 610 614 // check that the image is associated to the extension moved, i.e., 611 615 // 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); 613 618 614 619 if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) { … … 1448 1453 fits = psFitsOpen(filename,"r"); \ 1449 1454 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); \ 1452 1457 if (img3 == NULL) { \ 1453 1458 psError(PS_ERR_UNKNOWN, true,"Failed to read test image %s",filename); \ … … 1477 1482 img3 = NULL; \ 1478 1483 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); \ 1481 1486 if (img == NULL) { \ 1482 1487 psError(PS_ERR_UNKNOWN, true,"Failed to read test image %s",filename); \ … … 1530 1535 0,0,0,0 1531 1536 }; 1532 if(psFitsReadImage(NULL, NULL,region,0) != NULL) {1537 if(psFitsReadImage(NULL,region,0) != NULL) { 1533 1538 psError(PS_ERR_UNKNOWN,true,"Did not return NULL for NULL psFits"); 1534 1539 return 100; … … 1596 1601 psRegion region = {0,0,0,0}; 1597 1602 fits = psFitsOpen("tmpImages/writeTest.fits","r"); 1598 img = psFitsReadImage(NULL, fits, region, 0); 1603 img = NULL; 1604 img = psFitsReadImage(fits, region, 0); 1599 1605 if (img == NULL) { 1600 1606 psError(PS_ERR_UNKNOWN, true,"Could not read in writeTest.fits.");
Note:
See TracChangeset
for help on using the changeset viewer.
