IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 18, 2008, 3:04:13 PM (19 years ago)
Author:
Paul Price
Message:

Moving all options on FITS I/O into an additional structure, psFitsOptions. The idea is that this can be carried around independently of the FITS structure, which is only created when opening a file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_080117/psLib/src/fits/psFitsHeader.c

    r15630 r16141  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.38 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2007-11-16 01:04:56 $
     9 *  @version $Revision: 1.38.2.1 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2008-01-19 01:04:13 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    112112    PS_ASSERT_FITS_NON_NULL(fits, false);
    113113
    114     if (!fits->conventions.compression) {
     114    if (fits->options && !fits->options->conventions.compression) {
    115115        // User has turned off compression conventions; doesn't want any nasty surprises
    116116        return false;
     
    220220
    221221    bool compressed = false;            // Is this a compressed image?
    222     if (fits->conventions.compression && fits_is_compressed_image(fits->fd, &status)) {
     222    if ((!fits->options || fits->options->conventions.compression) &&
     223        fits_is_compressed_image(fits->fd, &status)) {
    223224        compressed = true;
    224225    }
Note: See TracChangeset for help on using the changeset viewer.