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


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

Re: Get["file.mx"] doesn't work

From Ulf-Dietrich Braumann <braumann@uni-leipzig.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Get["file.mx"] doesn't work
Date 2011-05-20 10:38 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ir5gbt$t48$1@smc.vnet.net> (permalink)
References <iqtnbm$io4$1@smc.vnet.net> <ir09p4$20l$1@smc.vnet.net>

Show all headers | View raw


Hi,

if no expressions need to be stored, just datasets, you also might 
consider exporting to NASACDF (common data format specified by NASA). It 
of course is portable, is binary, and one can specify some lossless 
compression methods. Recently I have used it for storing some scalar 32bit 
real valued autoradiographic images (approx. 9000x7000 pixels, approx. 
150MB on disk):

Export["psl.cdf", {psl}, {"Datasets", {"Photo Stimulated Luminescence"}}, 
{"DataFormat" -> "Real32", "DataEncoding" -> "GZIP"}];

(NB: TIFF export/import in Mathematica still cannot deal with real-valued 
images, whereas my images' value range was somewhat exotic: 0,...,2.5).

One can check what named data sets are included simply typing:
Import["psl.cdf"]
and gets:
{"Photo Stimulated Luminescence"}

Loading is done like this:
psl=Import["psl.cdf", {"Datasets", {"Photo Stimulated Luminescence"}}];

To store more data sets in one file, simply extend the list of variables 
and data set names...

At the moment unfortunately I cannot do performance comparisons (WDX, 
BinaryWrite, MX, NASACDF, ...).

Regards - Ulf-Dietrich

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


Thread

Re: Get["file.mx"] doesn't work "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com> - 2011-05-17 11:49 +0000
  Re: Get["file.mx"] doesn't work David Bailey <dave@removedbailey.co.uk> - 2011-05-18 11:15 +0000
    Re: Get["file.mx"] doesn't work Albert Retey <awnl@gmx-topmail.de> - 2011-05-19 11:44 +0000
      Re: Get["file.mx"] doesn't work Peter Pein <petsie@dordos.net> - 2011-05-20 11:02 +0000
        Re: Get["file.mx"] doesn't work Albert Retey <awnl@gmx-topmail.de> - 2011-05-21 10:47 +0000
    Re: Get["file.mx"] doesn't work Ulf-Dietrich Braumann <braumann@uni-leipzig.de> - 2011-05-20 10:38 +0000

csiph-web