« View all new features in
Mathematica
9
◄
previous
|
next
►
New in
Mathematica
9
›
Import and Export Formats
Create Hierarchical Datasets with Attributes
Create HDF5 files with hierarchical datasets and attributes.
In[1]:=
X
Export["file1.h5", { "Datasets" -> { "/Group1/dset1" -> Range[20], "/Group1/dset2" -> Partition[Range[20], 2], "/Group2/d1" -> Range[5], "/keyset" -> ConstantArray["a", {2, 3, 4}] }, "Attributes" -> { "/Group1" -> {"Note" -> {"This is main group"}, "Version" -> {9, 0, 0}}, "/Group1/dset2" -> {"Note" -> {"ExampleNote"}, "Method" -> {{1, 2}, {3, 4}}}, "/keyset" -> {"Creator" -> { "Mathematica 9"}, "Institution" -> {"Wolfram Research Inc."}} } }, "Rules"]
Out[1]=
Display the hierarchical structure of the dataset.