Changeset 14872 for trunk/psLib/src/fits/psFits.c
- Timestamp:
- Sep 17, 2007, 1:01:00 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFits.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFits.c
r14871 r14872 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.6 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-09-17 2 2:48:36$9 * @version $Revision: 1.68 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-09-17 23:01:00 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 565 565 psFits* fits, ///< psFits object to close 566 566 psFitsCompressionType type, ///< type of compression 567 int ndim, ///< number of dim in tile size array 568 long *tilesize, ///< pointer to an array defining compression tile size 567 psVector *tilesize, 569 568 int noisebits, ///< noise bits 570 569 int scale, ///< hcompress scale … … 600 599 goto ERROR; 601 600 } 602 fits_set_tile_dim(fits->fd, ndim, tilesize, &status); 601 602 // convert a psVector into the (long *) array that cfitsio requires 603 psVector *dim = NULL; 604 if (sizeof(long) == sizeof(psS64)) { 605 dim = psVectorCopy(NULL, tilesize, PS_DATA_S64); 606 fits_set_tile_dim(fits->fd, psVectorLength(dim), (long *)dim->data.S64, &status); 607 } else if (sizeof(long) == sizeof(psS32)) { 608 dim = psVectorCopy(NULL, tilesize, PS_DATA_S32); 609 fits_set_tile_dim(fits->fd, psVectorLength(dim), (long *)dim->data.S32, &status); 610 } else { 611 psAbort("can't map (long) type to a psLib type"); 612 } 613 // status check belongs to fits_set_tile_dim() call 603 614 if (!status) { 604 615 goto ERROR; 605 616 } 617 606 618 fits_set_noise_bits(fits->fd, noisebits, &status); 607 619 if (!status) {
Note:
See TracChangeset
for help on using the changeset viewer.
