IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 3, 2007, 10:21:45 AM (19 years ago)
Author:
Paul Price
Message:

Renaming fits->compression to fits->compConvention to distinguish between compression and compresion convention. Reworking psFitsMoveExtName, essentially using p_psFitsMoveExtName_UserKey as psFitsMoveExtName: Files compressed with cfitsio's 'imcopy' program may have multiple EXTNAME keywords, with the first set to COMPRESSED_IMAGE. However, fits_movnam_hdu won't find the second (proper) value of EXTNAME, and so can fail to find a perfectly legitimate extension, simply because imcopy does something silly. However, we really want to be able to read these files (MegaCam data are shipped as imcopy-compressed images). Therefore, we implement our own version of moving to an extension specified by name. The pure cfitsio version (what was originally in psFitsMoveExtName) is used if 'compConvention' handling is turned off in the psFits structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_070920/psLib/src/fits/psFits.h

    r15168 r15176  
    44 * @author Robert DeSonia, MHPCC
    55 *
    6  * @version $Revision: 1.31.2.3 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2007-10-03 03:01:45 $
     6 * @version $Revision: 1.31.2.4 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2007-10-03 20:21:45 $
    88 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    99 */
     
    5555    bool writable;                      ///< Is the file writable?
    5656    char *extword;                      ///< user-specified word to name extensions (NULL implies EXTNAME)
    57     bool compression;                   ///< Treat compressed images automatically?
     57    bool compConvention;                ///< Honour compression convention, handling compressed images
    5858} psFits;
    5959
Note: See TracChangeset for help on using the changeset viewer.