MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: FITS Export w/ Elements in V6?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85145] Re: FITS Export w/ Elements in V6?
  • From: Frank Iannarilli <frankeye at cox.net>
  • Date: Wed, 30 Jan 2008 06:06:18 -0500 (EST)
  • References: <fne17r$4vi$1@smc.vnet.net>

One possibly related problem is that the current V6.0.1.0 (Win) does
not successfully distinguish between a 32-bit integer and a 32-bit
floating-point array type FITS file. It thinks both are Real32 (for
the DataType element).  My trouble was in trying to Import[] then
Export[] the element set for a 32-bit integer FITS file.  Upon
Import[], the RawData element contains the correct data bytes (for
either type), but the Data element contains an array evidently coerced
by Mathematica into floating-point.  Presumably some of these
coercions are not valid IEEE float values, so that upon attempted
Export[], Mathematica complains.  I will submit a bug report to
Wolfram.

BTW, one can test the validity and type of FITS file with the
following tools, one on-line and the other for desktop:
<http://fits.gsfc.nasa.gov/fits_verify.html>
<http://heasarc.gsfc.nasa.gov/docs/software/ftools/fv/>



  • Prev by Date: Re: how to display both points and the line connecting them??
  • Next by Date: Re: Text XY-size control in 2D graphics?
  • Previous by thread: FITS Export w/ Elements in V6?
  • Next by thread: PLot3 function