MathGroup Archive 2013

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

Search the Archive

FITS and Confusions: Export vs Import

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129906] FITS and Confusions: Export vs Import
  • From: Frank Iannarilli <frankeye at cox.net>
  • Date: Mon, 25 Feb 2013 02:19:58 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net

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