Changeset 17447 for trunk/psLib/src/fits/psFitsImage.c
- Timestamp:
- Apr 17, 2008, 1:43:03 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFitsImage.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsImage.c
r16934 r17447 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2008-0 3-11 19:57:41$9 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2008-04-17 23:43:02 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 253 253 ) 254 254 { 255 assert(bscale);256 assert(bzero);257 assert(floatType);258 assert(fits);259 assert(image);255 psAssert(bscale, "impossible"); 256 psAssert(bzero, "impossible"); 257 psAssert(floatType, "impossible"); 258 psAssert(fits, "impossible"); 259 psAssert(image, "impossible"); 260 260 261 261 *bscale = 1.0; … … 358 358 { 359 359 // n.b., this assumes contiguous image buffer 360 assert(output);361 assert(fits);362 assert(info);363 assert(output->numCols == info->lastPixel[0] - info->firstPixel[0] + 1);364 assert(output->numRows == info->lastPixel[1] - info->firstPixel[1] + 1); // Right size365 assert(!output->parent); // No parents means the buffer is contiguous360 psAssert(output, "impossible"); 361 psAssert(fits, "impossible"); 362 psAssert(info, "impossible"); 363 psAssert(output->numCols == info->lastPixel[0] - info->firstPixel[0] + 1, "impossible"); 364 psAssert(output->numRows == info->lastPixel[1] - info->firstPixel[1] + 1, "impossible"); // Right size 365 psAssert(!output->parent, "impossible"); // No parents means the buffer is contiguous 366 366 367 367 int anynull = 0; // Are there any NULLs in the data? … … 516 516 if (cfitsioBzero != 0.0) { 517 517 // p_psFitsTypeToCfitsio and imageToDiskRepresentation must not clash! 518 assert(bzero == 0.0 && bscale == 1.0);518 psAssert(bzero == 0.0 && bscale == 1.0, "impossible"); 519 519 bscale = 1.0; 520 520 bzero = cfitsioBzero; 521 521 } 522 522 psFitsOptions *options = fits->options; // FITS I/O options 523 assert(!options || bitPix == options->bitpix || options->bitpix == 0);523 psAssert(!options || bitPix == options->bitpix || options->bitpix == 0, "impossible"); 524 524 525 525 int naxis = 3; // Number of axes … … 647 647 if (cfitsioBzero != 0.0) { 648 648 // p_psFitsTypeToCfitsio and imageToDiskRepresentation must not clash! 649 assert(bzero == 0.0 && bscale == 1.0);649 psAssert(bzero == 0.0 && bscale == 1.0, "impossible"); 650 650 bscale = 1.0; 651 651 bzero = cfitsioBzero; 652 652 } 653 653 psFitsOptions *options = fits->options; // FITS I/O options 654 assert(!options || bitPix == options->bitpix || options->bitpix == 0);654 psAssert(!options || bitPix == options->bitpix || options->bitpix == 0, "impossible"); 655 655 656 656 //check to see if the HDU has the same datatype
Note:
See TracChangeset
for help on using the changeset viewer.
