Changeset 14877
- Timestamp:
- Sep 17, 2007, 4:56:36 PM (19 years ago)
- Location:
- trunk/psLib/src/fits
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFits.c
r14876 r14877 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 69$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-09-18 02: 33:48$9 * @version $Revision: 1.70 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-09-18 02:56:36 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 182 182 } 183 183 184 static void psFitsOptionsFree(psFitsOptions *opt) 185 { 186 psFree(opt->tilesize); 187 } 188 189 psFitsOptions* psFitsOptionsAlloc( 190 psFitsCompressionType type, ///< type of compression 191 psVector *tilesize, ///< vector defining compression tile size 192 int noisebits, ///< noise bits 193 int scale, ///< hcompress scale 194 int smooth ///< hcompress smothing 195 ) 196 { 197 psFitsOptions *opt = psAlloc(sizeof(psFitsOptions)); 198 199 opt->type = type; 200 opt->tilesize = tilesize; 201 opt->noisebits = noisebits; 202 opt->scale = scale; 203 opt->smooth = smooth; 204 205 psMemSetDeallocator(opt, (psFreeFunc) psFitsOptionsFree); 206 207 return opt; 208 } 209 184 210 bool psMemCheckFits(psPtr ptr) 185 211 { … … 656 682 657 683 684 bool psFitsSetOptions( 685 psFits* fits, ///< psFits object to close 686 psFitsOptions *opt ///< options object 687 ) 688 { 689 return psFitsSetCompression( 690 fits, 691 opt->type, 692 opt->tilesize, 693 opt->noisebits, 694 opt->scale, 695 opt->smooth); 696 } 697 698 658 699 psDataType p_psFitsTypeFromCfitsio(int datatype) 659 700 { -
trunk/psLib/src/fits/psFits.h
r14872 r14877 4 4 * @author Robert DeSonia, MHPCC 5 5 * 6 * @version $Revision: 1.3 0$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-09-1 7 23:01:00$6 * @version $Revision: 1.31 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-09-18 02:56:36 $ 8 8 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 9 9 */ … … 56 56 } 57 57 psFits; 58 59 /** FITS options object. */ 60 typedef struct 61 { 62 psFitsCompressionType type; ///< type of compression 63 psVector *tilesize; ///< vector defining compression tile size 64 int noisebits; ///< noise bits 65 int scale; ///< hcompress scale 66 int smooth; ///< hcompress smothing 67 } 68 psFitsOptions; 58 69 59 70 /** Opens a FITS file and allocates the associated psFits object. … … 73 84 ); 74 85 86 /** Creates a new FITS options struct 87 * 88 * @return psFitsOptions or NULL on failure 89 */ 90 psFitsOptions* psFitsOptionsAlloc( 91 psFitsCompressionType type, ///< type of compression 92 psVector *tilesize, ///< vector defining compression tile size 93 int noisebits, ///< noise bits 94 int scale, ///< hcompress scale 95 int smooth ///< hcompress smothing 96 ); 97 75 98 /** Closes a FITS file. 76 99 * … … 96 119 ); 97 120 121 /** Sets FITS write options 122 * 123 * @return bool TRUE if successfully configured, otherwise FALSE 124 */ 125 bool psFitsSetOptions( 126 psFits* fits, ///< psFits object to close 127 psFitsOptions *opt ///< options object 128 ); 129 98 130 /** Checks the type of a particular pointer. 99 131 *
Note:
See TracChangeset
for help on using the changeset viewer.
