MathGroup Archive 2013

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

Search the Archive

FITS and Confusions: Export vs Import


This is for Mathematica 9.

(* !!  Export[] "Data", Import "RawData" !!   *)

If one tries to Export[] "RawData" it complains. So one needs to:

  Export["file.fits",{"Data"->data},"Rules"]


But Import[]ing "Data" yields an array scaled from 0-1. So to get back the arbitrary floating point array that one Export[]ed, one needs to:

  Import["file.fits", "RawData"]

Weird asymmetry!  





  • Prev by Date: i^2=1
  • Next by Date: Re: Hold & Evaluate
  • Previous by thread: Re: i^2=1
  • Next by thread: Real and Imaginary Parts of complex functions