summaryrefslogtreecommitdiffstats
path: root/tools/testfiles/tcomp-1.ddl
blob: 7c6ab7c8aae57c28446f9cc5eb55bb3f84c9bd8f (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#############################
Expected output for 'h5dump tcompound.h5'
#############################
HDF5 "tcompound.h5" {
GROUP "/" {
   DATATYPE "#5992:0" {
      H5T_STD_I32BE "int";
      H5T_IEEE_F32BE "float";
   }
   DATASET "dset1" {
      DATATYPE {
         H5T_STD_I32BE "a_name";
         H5T_IEEE_F32BE "b_name";
         H5T_IEEE_F64BE "c_name";
      }
      DATASPACE { SIMPLE ( 5 ) / ( 5 ) }
      DATA {
         {0,0,1}
         {1,1,0.5}
         {2,4,0.333333}
         {3,9,0.25}
         {4,16,0.2}
      }
   }
   GROUP "group1" {
      DATASET "dset2" {
         DATATYPE {
            "/type1"
         }
         DATASPACE { SIMPLE ( 5 ) / ( 5 ) }
         DATA {
            {0,0}
            {1,1.1}
            {2,2.2}
            {3,3.3}
            {4,4.4}
         }
      }
      DATASET "dset3" {
         DATATYPE {
            "/type2"
         }
         DATASPACE { SIMPLE ( 3, 6 ) / ( 3, 6 ) }
         DATA {
            {[0,1,2,3],[0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.2,0.2,0.2,0.2,0.2,0.3,0.3,0.3,0.3,0.3,0.3,0.4,0.4,0.4,0.4,0.4,0.4,0.5,0.5,0.5,0.5,0.5,0.5]}
            {[0,1,2,3],[0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.2,0.2,0.2,0.2,0.2,0.3,0.3,0.3,0.3,0.3,0.3,0.4,0.4,0.4,0.4,0.4,0.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],[0.1,0.1,0.1,0.1,0.1,0.1,0.2,0.2,0.2,0.2,0.2,0.2,0.3,0.3,0.3,0.3,0.3,0.3,0.4,0.4,0.4,0.4,0.4,0.4,0.5,0.5,0.5,0.5,0.5,0.5]}
         }
      }
      DATASET "dset4" {
         DATATYPE {
            "/group1/type3"
         }
         DATASPACE { SIMPLE ( 5 ) / ( 5 ) }
         DATA {
            {0,0}
            {1,1}
            {2,2}
            {3,3}
            {4,4}
         }
      }
      DATATYPE "type3" {
         H5T_STD_I32BE "int";
         H5T_IEEE_F32BE "float";
      }
   }
   GROUP "group2" {
      DATASET "dset5" {
         DATATYPE {
            "#5992:0"
         }
         DATASPACE { SIMPLE ( 5 ) / ( 5 ) }
         DATA {
            {0,0}
            {1,0.1}
            {2,0.2}
            {3,0.3}
            {4,0.4}
         }
      }
   }
   DATATYPE "type1" {
      H5T_STD_I32BE "int_name";
      H5T_IEEE_F32BE "float_name";
   }
   DATATYPE "type2" {
      H5T_STD_I32BE "int_array"[4];
      H5T_IEEE_F32BE "float_array"[5][6];
   }
}
}