IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15625


Ignore:
Timestamp:
Nov 15, 2007, 2:14:49 PM (18 years ago)
Author:
Paul Price
Message:

Adding "NONE" for no compression.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFits.c

    r15335 r15625  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.73 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2007-10-19 23:52:39 $
     9 *  @version $Revision: 1.74 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2007-11-16 00:14:49 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    1818
    1919#include <unistd.h>
     20#include <string.h>
    2021
    2122#include "psFits.h"
    2223#include "psFitsHeader.h"
    23 #include "string.h"
    2424#include "psError.h"
    2525#include "psAssert.h"
     
    3131#include "psVector.h"
    3232#include "psAbort.h"
     33#include "psFitsFloat.h"
    3334
    3435#define MAX_STRING_LENGTH 256  // maximum length string for FITS routines
     
    164165    fits->conventions.compression = true;
    165166    fits->conventions.psBitpix = true;
    166     fits->bscale = 0.0;
    167     fits->bzero = 0.0;
     167    fits->bitpix = 0;
     168    fits->floatType = PS_FITS_FLOAT_NONE;
    168169    psMemSetDeallocator(fits,(psFreeFunc)fitsFree);
    169170
     
    860861    }
    861862
     863    if (strcmp(string, "NONE") == 0) return PS_FITS_COMPRESS_NONE;
    862864    if (strcmp(string, "GZIP") == 0) return PS_FITS_COMPRESS_GZIP;
    863865    if (strcmp(string, "RICE") == 0) return PS_FITS_COMPRESS_RICE;
Note: See TracChangeset for help on using the changeset viewer.