@@ -46,17 +46,17 @@ JSON Representation of an attribute with a ``H5T_STD_I8LE`` (signed, one byte) t
46
46
.. code-block :: json
47
47
48
48
{
49
- "name" : " attr1" ,
50
- "shape" : {
51
- "class" : " H5S_SIMPLE" ,
52
- "dims" : [27 ]
53
- },
54
- "type" : {
55
- "class" : " H5T_INTEGER" ,
56
- "base" : " H5T_STD_I8LE"
49
+ "name" : " attr1" ,
50
+ "shape" : {
51
+ "class" : " H5S_SIMPLE" ,
52
+ "dims" : [27 ]
53
+ },
54
+ "type" : {
55
+ "class" : " H5T_INTEGER" ,
56
+ "base" : " H5T_STD_I8LE"
57
57
},
58
- "value" : [49 , 115 , 116 , 32 , 97 , 116 , 116 , 114 , 105 , 98 , 117 , 116 , 101 , 32 ,
59
- 111 , 102 , 32 , 100 , 115 , 101 , 116 , 49 , 46 , 49 , 46 , 49 , 0 ]
58
+ "value" : [49 , 115 , 116 , 32 , 97 , 116 , 116 , 114 , 105 , 98 , 117 , 116 , 101 , 32 ,
59
+ 111 , 102 , 32 , 100 , 115 , 101 , 116 , 49 , 46 , 49 , 46 , 49 , 0 ]
60
60
}
61
61
62
62
@@ -85,17 +85,17 @@ JSON representation of a dataset using a fixed width string of 40 characters:
85
85
.. code-block :: json
86
86
87
87
{
88
- "id" : " 1e8a359c-ac46-11e4-9f3e-3c15c2da029e" ,
89
- "shape" : {
90
- "class" : " H5S_SCALAR" ,
91
- },
92
- "type" : {
93
- "class" : " H5T_STRING" ,
94
- "charSet" : " H5T_CSET_ASCII" ,
95
- "strPad" : " H5T_STR_NULLPAD" ,
96
- "length" : 40
88
+ "id" : " 1e8a359c-ac46-11e4-9f3e-3c15c2da029e" ,
89
+ "shape" : {
90
+ "class" : " H5S_SCALAR" ,
91
+ },
92
+ "type" : {
93
+ "class" : " H5T_STRING" ,
94
+ "charSet" : " H5T_CSET_ASCII" ,
95
+ "strPad" : " H5T_STR_NULLPAD" ,
96
+ "length" : 40
97
97
},
98
- "value" : " Hello, World!"
98
+ "value" : " Hello, World!"
99
99
}
100
100
101
101
String Types - Variable Length
@@ -126,23 +126,23 @@ JSON representation of a attribute using a variable length string:
126
126
.. code-block :: json
127
127
128
128
{
129
- "name" : " A1" ,
130
- "shape" : {
131
- "class" : " H5S_SIMPLE" ,
132
- "dims" : [4 ]
133
- },
134
- "type" : {
135
- "class" : " H5T_STRING" ,
136
- "charSet" : " H5T_CSET_ASCII" ,
137
- "strPad" : " H5T_STR_NULLTERM" ,
138
- "length" : " H5T_VARIABLE"
139
- },
140
- "value" : [
141
- " Hypermedia" ,
142
- " as the" ,
143
- " engine" ,
144
- " of state."
145
- ]
129
+ "name" : " A1" ,
130
+ "shape" : {
131
+ "class" : " H5S_SIMPLE" ,
132
+ "dims" : [4 ]
133
+ },
134
+ "type" : {
135
+ "class" : " H5T_STRING" ,
136
+ "charSet" : " H5T_CSET_ASCII" ,
137
+ "strPad" : " H5T_STR_NULLTERM" ,
138
+ "length" : " H5T_VARIABLE"
139
+ },
140
+ "value" : [
141
+ " Hypermedia" ,
142
+ " as the" ,
143
+ " engine" ,
144
+ " of state."
145
+ ]
146
146
}
147
147
148
148
@@ -169,30 +169,30 @@ floating point elements:
169
169
.. code-block :: json
170
170
171
171
{
172
- "name" : " mycomplex" ,
173
- "shape" : {
174
- "class" : " H5S_SCALAR"
175
- },
176
- "type" : {
177
- "class" : " H5T_COMPOUND" ,
178
- "fields" : [
172
+ "name" : " mycomplex" ,
173
+ "shape" : {
174
+ "class" : " H5S_SCALAR"
175
+ },
176
+ "type" : {
177
+ "class" : " H5T_COMPOUND" ,
178
+ "fields" : [
179
179
{
180
- "name" : " real_part" ,
181
- "type" : {
180
+ "name" : " real_part" ,
181
+ "type" : {
182
182
"base" : " H5T_IEEE_F64LE" ,
183
183
"class" : " H5T_FLOAT"
184
184
}
185
185
},
186
186
{
187
- "name" : " imaginary_part" ,
188
- "type" : {
187
+ "name" : " imaginary_part" ,
188
+ "type" : {
189
189
"base" : " H5T_IEEE_F64LE" ,
190
190
"class" : " H5T_FLOAT"
191
191
}
192
192
}
193
193
]
194
- },
195
- "value" : [ 1.2345 , -2.468 ]
194
+ },
195
+ "value" : [ 1.2345 , -2.468 ]
196
196
}
197
197
198
198
Enumerated Types
@@ -213,25 +213,25 @@ Example
213
213
.. code-block :: json
214
214
215
215
{
216
- "id" : " 1e8a359c-ac46-11e4-9f3e-3c15c2da029e" ,
217
- "shape" : {
218
- "class" : " H5S_SIMPLE" ,
219
- "dims" : [ 7 ]
220
- },
221
- "type" : {
222
- "class" : " H5T_ENUM" ,
223
- "base" : {
224
- "class" : " H5T_INTEGER" ,
225
- "base" : " H5T_STD_I16BE"
226
- },
227
- "mapping" : {
228
- "GAS" : 2 ,
229
- "LIQUID" : 1 ,
230
- "PLASMA" : 3 ,
231
- "SOLID" : 0
232
- }
233
- },
234
- "value" : [ 0 , 2 , 3 , 2 , 0 , 1 , 1 ]
216
+ "id" : " 1e8a359c-ac46-11e4-9f3e-3c15c2da029e" ,
217
+ "shape" : {
218
+ "class" : " H5S_SIMPLE" ,
219
+ "dims" : [ 7 ]
220
+ },
221
+ "type" : {
222
+ "class" : " H5T_ENUM" ,
223
+ "base" : {
224
+ "class" : " H5T_INTEGER" ,
225
+ "base" : " H5T_STD_I16BE"
226
+ },
227
+ "mapping" : {
228
+ "GAS" : 2 ,
229
+ "LIQUID" : 1 ,
230
+ "PLASMA" : 3 ,
231
+ "SOLID" : 0
232
+ }
233
+ },
234
+ "value" : [ 0 , 2 , 3 , 2 , 0 , 1 , 1 ]
235
235
}
236
236
237
237
Array Types
@@ -252,24 +252,24 @@ A dataset with 3 elements, each of which is a 2x2 array of integers.
252
252
.. code-block :: json
253
253
254
254
{
255
- "id" : " 9348ad51-7bf7-11e4-a66f-3c15c2da029e" ,
256
- "shape" : {
257
- "class" : " H5S_SIMPLE" ,
258
- "dims" : [ 3 ]
259
- },
260
- "type" : {
261
- "class" : " H5T_ARRAY" ,
262
- "base" : {
263
- "class" : " H5T_INTEGER" ,
264
- "base" : " H5T_STD_I16BE"
255
+ "id" : " 9348ad51-7bf7-11e4-a66f-3c15c2da029e" ,
256
+ "shape" : {
257
+ "class" : " H5S_SIMPLE" ,
258
+ "dims" : [ 3 ]
259
+ },
260
+ "type" : {
261
+ "class" : " H5T_ARRAY" ,
262
+ "base" : {
263
+ "class" : " H5T_INTEGER" ,
264
+ "base" : " H5T_STD_I16BE"
265
+ },
266
+ "dims" : [ 2 , 2 ]
265
267
},
266
- "dims" : [ 2 , 2 ]
267
- },
268
- "value" : [
269
- [ [1 , 2 ], [3 , 4 ] ],
270
- [ [2 , 1 ], [4 , 3 ] ],
271
- [ [1 , 1 ], [4 , 4 ] ]
272
- ]
268
+ "value" : [
269
+ [ [1 , 2 ], [3 , 4 ] ],
270
+ [ [2 , 1 ], [4 , 3 ] ],
271
+ [ [1 , 1 ], [4 , 4 ] ]
272
+ ]
273
273
}
274
274
275
275
Opaque Types
@@ -304,20 +304,20 @@ third element points to a group.
304
304
.. code-block :: json
305
305
306
306
{
307
- "name" : " objref_attr" ,
308
- "shape" : {
309
- "class" : " H5S_SIMPLE" ,
310
- "dims" : [ 3 ]
311
- },
312
- "type" : {
313
- "class" : " H5T_REFERENCE" ,
314
- "base" : " H5T_STD_REF_OBJ"
315
- },
316
- "value" : [
317
- " groups/a09a9b99-7bf7-11e4-aa4b-3c15c2da029e" ,
318
- " " ,
319
- " datasets/a09a8efa-7bf7-11e4-9fb6-3c15c2da029e"
320
- ]
307
+ "name" : " objref_attr" ,
308
+ "shape" : {
309
+ "class" : " H5S_SIMPLE" ,
310
+ "dims" : [ 3 ]
311
+ },
312
+ "type" : {
313
+ "class" : " H5T_REFERENCE" ,
314
+ "base" : " H5T_STD_REF_OBJ"
315
+ },
316
+ "value" : [
317
+ " groups/a09a9b99-7bf7-11e4-aa4b-3c15c2da029e" ,
318
+ " " ,
319
+ " datasets/a09a8efa-7bf7-11e4-9fb6-3c15c2da029e"
320
+ ]
321
321
}
322
322
323
323
Region Reference Types
@@ -347,34 +347,34 @@ gives the boundary of the selection.
347
347
.. code-block :: json
348
348
349
349
{
350
- "id" : " 68ee8647-7bed-11e4-9397-3c15c2da029e" ,
351
- "shape" : {
352
- "class" : " H5S_SIMPLE" ,
353
- "dims" : [2 ]
354
- },
355
- "type" : {
356
- "class" : " H5T_REFERENCE" ,
357
- "base" : " H5T_STD_REF_DSETREG"
358
- },
359
- "value" : [
360
- {
361
- "id" : " 68ee967a-7bed-11e4-819c-3c15c2da029e" ,
362
- "select_type" : " H5S_SEL_POINTS" ,
363
- "selection" : [
364
- [0 , 1 ], [2 , 11 ], [1 , 0 ], [2 , 4 ]
365
- ]
350
+ "id" : " 68ee8647-7bed-11e4-9397-3c15c2da029e" ,
351
+ "shape" : {
352
+ "class" : " H5S_SIMPLE" ,
353
+ "dims" : [2 ]
354
+ },
355
+ "type" : {
356
+ "class" : " H5T_REFERENCE" ,
357
+ "base" : " H5T_STD_REF_DSETREG"
366
358
},
367
- {
368
- "id" : " 68ee967a-7bed-11e4-819c-3c15c2da029e" ,
369
- "select_type" : " H5S_SEL_HYPERSLABS" ,
370
- "selection" : [
371
- [ [0 , 0 ], [0 , 2 ] ],
372
- [ [0 , 11 ], [0 , 13 ] ],
373
- [ [2 , 0 ], [2 , 2 ] ],
374
- [ [2 , 11 ], [2 , 13 ] ]
375
- ]
376
- }
377
- ]
359
+ "value" : [
360
+ {
361
+ "id" : " 68ee967a-7bed-11e4-819c-3c15c2da029e" ,
362
+ "select_type" : " H5S_SEL_POINTS" ,
363
+ "selection" : [
364
+ [0 , 1 ], [2 , 11 ], [1 , 0 ], [2 , 4 ]
365
+ ]
366
+ },
367
+ {
368
+ "id" : " 68ee967a-7bed-11e4-819c-3c15c2da029e" ,
369
+ "select_type" : " H5S_SEL_HYPERSLABS" ,
370
+ "selection" : [
371
+ [ [0 , 0 ], [0 , 2 ] ],
372
+ [ [0 , 11 ], [0 , 13 ] ],
373
+ [ [2 , 0 ], [2 , 2 ] ],
374
+ [ [2 , 11 ], [2 , 13 ] ]
375
+ ]
376
+ }
377
+ ]
378
378
}
379
379
380
380
Type Keys
0 commit comments