blob: b6c92d44a7be826f8bf397a312051e2febe28623 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#############################
Expected output for 'h5dump --xml tnestedcomp.h5'
#############################
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDF5-File PUBLIC "HDF5-File.dtd" "http://hdf.ncsa.uiuc.edu/DTDs/HDF5-File.dtd">
<HDF5-File>
<RootGroup OBJ-XID="root">
<Dataset Name="ArrayOfStructures" OBJ-XID="/ArrayOfStructures" Parents="root">
<Dataspace>
<SimpleDataspace Ndims="1">
<Dimension DimSize="10" MaxDimSize="10"/>
</SimpleDataspace>
</Dataspace>
<DataType>
<CompoundType>
<Field FieldName="a_name">
<DataType>
<AtomicType>
<IntegerType ByteOrder="LE" Sign="true" Size="4" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="b_name">
<DataType>
<AtomicType>
<FloatType ByteOrder="LE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="c_name">
<DataType>
<AtomicType>
<FloatType ByteOrder="LE" Size="8" SignBitLocation="63" ExponentBits="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" />
</AtomicType>
</DataType>
</Field>
<Field FieldName="d_name">
<DataType>
<CompoundType>
<Field FieldName="char_name">
<DataType>
<AtomicType>
<StringType Cset="H5T_CSET_ASCII" StrSize="1" StrPad="H5T_STR_NULLTERM"/>
</AtomicType>
</DataType>
</Field>
<Field FieldName="array_name">
<DataType>
<ArrayType Ndims="1">
<ArrayDimension DimSize="2" DimPerm="0"/>
<DataType>
<AtomicType>
<FloatType ByteOrder="LE" Size="4" SignBitLocation="31" ExponentBits="8" ExponentLocation="23" MantissaBits="23" MantissaLocation="0" />
</AtomicType>
</DataType>
</ArrayType>
</DataType>
</Field>
</CompoundType>
</DataType>
</Field>
</CompoundType>
</DataType>
<!-- Note: format of compound data not specified -->
<Data>
<DataFromFile>
0 0 1 "A" -100 100 1 1 0.5 "B" -100 100
2 4 0.333333 "C" -100 100 3 9 0.25 "D" -100 100
4 16 0.2 "E" -100 100 5 25 0.166667 "F" -100 100
6 36 0.142857 "G" -100 100 7 49 0.125 "H" -100 100
8 64 0.111111 "I" -100 100 9 81 0.1 "J" -100 100
</DataFromFile>
</Data>
</Dataset>
</RootGroup>
</HDF5-File>
|