Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13598 > unrolled thread
| Started by | Frank Iannarilli <frankeye@cox.net> |
|---|---|
| First post | 2013-02-25 07:19 +0000 |
| Last post | 2013-02-25 07:19 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
FITS and Confusions: Export vs Import Frank Iannarilli <frankeye@cox.net> - 2013-02-25 07:19 +0000
| From | Frank Iannarilli <frankeye@cox.net> |
|---|---|
| Date | 2013-02-25 07:19 +0000 |
| Subject | FITS and Confusions: Export vs Import |
| Message-ID | <kgf39f$mil$1@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!
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web