Changeset 15177 for branches/pap_branch_070920/psLib/src/fits/psFits.c
- Timestamp:
- Oct 3, 2007, 10:57:13 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_070920/psLib/src/fits/psFits.c
r15176 r15177 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.71.2. 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-10-03 20: 21:45$9 * @version $Revision: 1.71.2.5 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-10-03 20:57:13 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 162 162 fits->writable = (iomode == READWRITE); 163 163 fits->extword = NULL; 164 fits->co mpConvention = true;164 fits->conventions.compression = true; 165 165 psMemSetDeallocator(fits,(psFreeFunc)fitsFree); 166 166 … … 238 238 // really want to be able to read these files (MegaCam data are shipped as imcopy-compressed images). 239 239 // Therefore, we implement our own version of moving to an extension specified by name. The pure cfitsio 240 // version is used if "co mpConvention" handling is turned off in the psFits structure.240 // version is used if "conventions.compression" handling is turned off in the psFits structure. 241 241 bool psFitsMoveExtName(const psFits* fits, 242 242 const char* extname) … … 247 247 int status = 0; 248 248 249 if (!fits->co mpConvention && !fits->extword) {249 if (!fits->conventions.compression && !fits->extword) { 250 250 // User wants to use cfitsio. Good luck to them! 251 251 if (fits_movnam_hdu(fits->fd, ANY_HDU, (char*)extname, 0, &status) != 0) { … … 256 256 } 257 257 258 bool ignoreCI = (fits->co mpConvention &&258 bool ignoreCI = (fits->conventions.compression && 259 259 (strcmp(extname, "COMPRESSED_IMAGE") != 0)); // Ignore COMPRESSED_IMAGE extension name? 260 260 char *extword = (fits->extword ? fits->extword : "EXTNAME"); // Word to use as extension name
Note:
See TracChangeset
for help on using the changeset viewer.
