Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13598

FITS and Confusions: Export vs Import

From Frank Iannarilli <frankeye@cox.net>
Newsgroups comp.soft-sys.math.mathematica
Subject FITS and Confusions: Export vs Import
Date 2013-02-25 07:19 +0000
Message-ID <kgf39f$mil$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


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!  


Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

FITS and Confusions: Export vs Import Frank Iannarilli <frankeye@cox.net> - 2013-02-25 07:19 +0000

csiph-web