MathGroup Archive 1999

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

Search the Archive

Re: HDF export

  • To: mathgroup at
  • Subject: [mg18789] Re: HDF export
  • From: paulh at (P.J. Hinton)
  • Date: Thu, 22 Jul 1999 08:19:16 -0400
  • Organization: Wolfram Research, Inc.
  • References: <7n12q3$>
  • Sender: owner-wri-mathgroup at

In article <7n12q3$bd3 at>, "Roberto Abraham" <abraham at> writes:
> A central idea behind the HDF format is that the file should be somewhat
> "self documenting" in the sense of possibility including an internal
> description of the nature of the data, or at least through the use of
> sensible keyword names in the data hierarchy to indicate what sort of data
> is being stored.  However, I can't seem to figure out a way to achieve this
> in Mathematica.  Is there a way to export arrays and store them with
> specified names? 

Unfortunately, there are no mechanisms in Mathematica's Export[] function
for specifying set names.  You may want to use a tool like NCSA's hdfed to
add the desired set names.

> Also, the on-line help for the Export[] function says that HDF format is 
> "supported for numerical and textual data" but I can't figure out how to 
> export a text string.

If you are working with an eight-bit character encoding, you could transform
the string into an array of characters (e.g. like what is returned by the
built-in Characters[] function) and then write out the array as Byte data 

P.J. Hinton	
Mathematica Programming Group		paulh at
Wolfram Research, Inc.
Disclaimer: Opinions expressed herein are those of the author alone.

  • Prev by Date: Re: ARghh!!
  • Next by Date: Re: InputStream in version 3 vs version 4
  • Previous by thread: Re: HDF export
  • Next by thread: [Q] Thread[] and Hold[]