File: index.html

package info (click to toggle)
hdf5 1.8.13%2Bdocs-15
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 171,520 kB
  • sloc: ansic: 387,158; f90: 35,195; sh: 20,035; xml: 17,780; cpp: 13,516; makefile: 1,487; perl: 1,299; yacc: 327; lex: 178; ruby: 37
file content (601 lines) | stat: -rw-r--r-- 20,566 bytes parent folder | download | duplicates (2)
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
<html>
<head>
<title>HDF5 Metadata</title>
</head>

<body>


<!--
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  * Copyright by The HDF Group.                                               *
  * Copyright by the Board of Trustees of the University of Illinois.         *
  * All rights reserved.                                                      *
  *                                                                           *
  * This file is part of HDF5.  The full HDF5 copyright notice, including     *
  * terms governing use, modification, and redistribution, is contained in    *
  * the files COPYING and Copyright.html.  COPYING can be found at the root   *
  * of the source code distribution tree; Copyright.html can be found at the  *
  * root level of an installed copy of the electronic HDF5 document set and   *
  * is linked from the top-level documents page.  It can also be found at     *
  * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
  * access to either file, you may request a copy from help@hdfgroup.org.     *
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 -->

<!-- This file provides a reasonably complete description of HDF5 metadata.  -->
<!-- If a brief overview can be found in the file _topics/metadata.htm,      -->
<!-- which is designed for PHP-inclusion in running text.                    -->

<br />
<p>
Return to &ldquo;<a href="../../Advanced.html">Advanced Topics</a>.&rdquo;</p>
<hr />


<h1>HDF5 Metadata</h1>

<h2>Introduction</h2>
    HDF5 files can contain several types of metadata: 
    <ul>
        <li>Library metadata 
        <li>Static user metadata
        <li>Dynamic user metadata
    </ul>

<h2>Library Metadata</h2>
    Library metadata is metadata that the user does not have any direct 
    interaction with or control over.  It is generated by the HDF5 Library 
    to describe the structure of the file and structure and contents of 
    objects in the file.  
    For example, library metadata includes information such as:
    <ul>
        <li>Most elements of the header block (superblock), 
            which sets up the file, sets up the initial structures, 
            and identifies the file as a valid HDF5 file
        <li>Object headers, which set up objects in an HDF5 file
        <li>B-trees that describe the location of and provide access 
            to groups and members of groups 
    </ul>
    <p>
    HDF5 natively interprets and understands library metadata.  
    Library metadata is always present; even an otherwise-empty file must 
    contain a superblock and a root group object header to be a valid 
    HDF5 file. 


<h2>Static and Dynamic User Metadata</h2>
    User metadata is defined and provided by the user application.
    <p>
    HDF5 does not always natively understand user metadata; much of it 
    must be understood and interpreted by the application.  
    For example, the only thing the library understands in the 
    dynamic user metadata list below is the extent of the dataset 
    in the last bullet.  
    <p>
    User metadata is technically optional but is almost universally used.


<h3>Static User Metadata</h3>
    Static user metadata is information that the user can control 
    but that is not generally dynamic.  
    It is stored in the file superblock or an object header and 
    does not usually change through the life of a file or object.  
    <p>
    Examples of static user metadata include:
    <ul>
        <li>Property lists: For example, <code>H5Pset_fapl_family</code>
            sets a file access property specifying that file I/O will 
            use the family driver. 
        <li>Link names
        <li>A dataset&rsquo;s datatype and dataspace 
            (modulo the potential to extend or shrink it)
        <li>Dataset fill values
        <li>Dataset or group storage properties
    </ul>
    <p>
    Static user metadata does not usually change through the 
    life of a file or object.  
    In some cases, it can change but just doesn&rsquo;t tend to  to do so; 
    for example, the name of a hard link to an object can be changed 
    only by creating a new hard link and removing the old link. 
    In the more general case, static user metadata can be changed 
    only when making a new copy of an HDF5 file or object.  
    For example, file creation and dataset creation properties can be 
    changed only when making a new copy of a file or dataset, respectively.


<h3>Dynamic User Metadata</h3>
    Dynamic user metadata is metadata that the user or application 
    can change at will.  
    It is often stored in an HDF5 attribute, 
    may describe virtually anything, 
    and can easily change over time.  
    <p>
    The following are instances of dynamic user metadata: 
    <ul>
        <li>Minimum and maximum valid values in a dataset
        <li>Conditions under which data was collected
        <li>Data history and/or provenance
        <li>Relationships among datasets 
        <li>Scales or other interpretive information
        <li>The extent of a chunked dataset within the bounds of its maximum extent
    </ul>


<h2>Metadata Types and Mechanisms</h2>
    Table 1 lists several examples of each type of HDF5 metadata, 
    where it is stored, how it is set, and whether it is natively interpreted 
    by the HDF5 Library or must be interpreted by the user application.  
    This is a representative subset, not a complete list of HDF5 metadata.
    <p>
    <table width="100%" cellpadding="0">
      <tr valign="top>
        <td colspan="4" align="left" valign="bottom">
          <b>Table 1. Examples of HDF5 metadata by type</b>
          <hr color="green" size="3"/>
          </td>
        </tr>
      <tr valign="top" align="left">
        <th width="20%">Element</th>
        <th width="30%">Where stored</th>
        <th width="30%">How set</th>
        <th width="20%">Interpreted&nbsp;by</th>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="3"/>
          </td>
        </tr>
      <tr valign="top">
        <td colspan="4"><b>Library metadata</b></td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Superblock</td>
        <td>Header block at beginning of file</td>
        <td>Created with file; always present</td>
        <td>HDF5 Library</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>File driver information</td>
        <td>Superblock and driver information block</td>
        <td><code>H5Pset_fapl_*</code></td>
        <td>HDF5 Library</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>B-trees</td>
        <td>At various locations within file</td>
        <td>Library</td>
        <td>HDF5 Library</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Object offsets</td>
        <td>B-tree</td>
        <td>Library</td>
        <td>HDF5 Library</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Object headers</td>
        <td>Header block for each object in an HDF5 file</td>
        <td>Created with object; present as long as object exists</td>
        <td>HDF5 Library</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="3"/>
          </td>
        </tr>

      <tr valign="top">
        <td colspan="4"><b>Static user metadata</b></td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Dataset storage layout</td>
        <td>Dataset object header</td>
        <td><code>H5Pset_layout</code></td>
        <td>HDF5 Library</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>

      <tr valign="top" align="left">
        <td>Shared object header messages</td>
        <td>Superblock and global heap</td>
        <td><code>H5Pset_shared_mesg_*&nbsp;&nbsp;</code></td>
        <td>HDF5 Library</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>

      <tr valign="top" align="left">
        <td>Link names and hierarchical structure</td>
        <td>Group symbol table entries</td>
        <td>H5G, H5L interfaces</td>
        <td>HDF5 Library</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Permanent property lists</td>
        <td>Dataset object header, data layout message,</td>
        <td>H5P interface</td>
        <td>HDF5 Library</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Transient property lists</td>
        <td>Not stored</td>
        <td>H5P interface</td>
        <td>HDF5 Library</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Checksum</td>
        <td>Dataset object header plus a checksum value accompanying 
            each compressed dataset chunk</td>
        <td><code>H5Pset_fletcher32</code></td>
        <td>HDF5 Library and application</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Datatype</td>
        <td>Dataset object header</td>
        <td>H5T interface</td>
        <td>HDF5 Library</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Dataspace 
            <!--
            <br /><font size="-2">
            (contiguous dimensions or chunked maximum dimensions)
            </font>
            -->
            </td>
        <td>Dataset object header</td>
        <td>H5S interface </td>
        <td>HDF5 Library</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <font size="-2">
          (contiguous dimensions or chunked maximum dimensions)
          </font>
          <hr color="green" size="3"/>
          </td>
        </tr>

      <tr valign="top">
        <td colspan="4"><b>Dynamic user metadata</b></td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Min/max dataset values </td>
        <td>Attribute(s)</td>
        <td>H5A interface</td>
        <td>Application</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Data collection conditions</td>
        <td>Attribute(s)</td>
        <td>H5A interface</td>
        <td>Application</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Data provenance</td>
        <td>Attribute(s)</td>
        <td>H5A interface</td>
        <td>Application</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Object relationships 
            <br>
            <font size="-2">
            (other&nbsp;than&nbsp;hierarchical&nbsp;structure)
            </font>
        <td>Attributes</td>
        <td>H5A interface</td>
        <td>Application</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Measurement scales</td>
        <td>Attribute(s)</td>
        <td>H5A interface</td>
        <td>Application</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="1"/>
          </td>
        </tr>
         
      <tr valign="top" align="left">
        <td>Dataspace 
            <br /><font size="-2">
            (current chunked dimensions)
            </font></td>
        <td>Dataset object header</td>
        <td><code>H5Dset_extent</code></td>
        <td>HDF5 Library and application</td>
        </tr>
      <tr valign="top">
        <td colspan="4">
          <hr color="green" size="3"/>
          </td>
        </tr>
         
    </table>
    

<h2>Additional Information</h2>
    See the following texts for additional details, usage information, 
    and examples.

<h3>Properties</h3>
    HDF5 property lists are used for both static and dynamic user metadata.  
    Object creation property lists are static; they are stored with the 
    object and cannot be changed without rewriting that object.  
    Object access property lists are dynamic, or transient.  
    They must be defined when an object is first created and redefined 
    every time the object is opened; they are not stored.
    <p>
    Both static and dynamic user properties associated with the following 
    classes of objects are discussed in specific chapters of the
    <!-- BEGIN FOR ELECTRONIC -->
    <a href="../../UG/index.html"><cite>HDF5 User&rsquo;s Guide</cite></a>:
    <!-- END FOR ELECTRONIC -->
    <!-- BEGIN FOR PRINT --
    <cite>HDF5 User&rsquo;s Guide</cite>
    (<code>http://www.hdfgroup.org/HDF5/doc/UG/index.html</code>):
    <!-- END FOR PRINT -->
    <div align=left>
    <table>
      <tr valign="top" align="left">
        <td><code>&nbsp;&nbsp;&nbsp;&nbsp;</code></td>
        <td><u>Object</u></td>
        <td><u>Chapter</u></td>
        </tr>
      <tr valign="top" align="left">
        <td>&nbsp;</td>
        <td>File properties</td>
        
        <td>&ldquo;<a href="../../UG/UG_frame08TheFile.html">The HDF5 File</a>&rdquo;</td>
        </tr>
      <tr valign="top" align="left">
        <td>&nbsp;</td>
        <td>Group properties</td>
        <td>&ldquo;<a href="../../UG/UG_frame09Groups.html">HDF5 Groups</a>&rdquo;</td>
        </tr>
      <tr valign="top" align="left">
        <td>&nbsp;</td>
        <td>Dataset properties<code>&nbsp;&nbsp;</code></td>
        <td>&ldquo;<a href="../../UG/UG_frame10Datasets.html">HDF5 Datasets</a>&rdquo;</td>
        </tr>
    </table>
    </div>

    <p>
    The &ldquo;<a href="../../RM/RM_H5P.html">H5P: 
    Property List Interface</a>&rdquo; section in the 
    <a href="../../RM/RM_H5Front.html"><cite>HDF5 Reference Manual</cite></a> 
    <!-- BEGIN FOR PRINT --
    (<code>http://www.hdfgroup.org/HDF5/doc/RM/RM_H5Front.html</code>):
    <!-- END FOR PRINT -->
    lists and describes the usage details for all of the interfaces used 
    to manage the above types of properties and several additional types.

<h3>Attributes</h3>
    HDF5 attributes, which offer nearly infinite flexibility for 
    dynamic user metadata, are discussed in:
    <ul>
        <li>The &ldquo;<a href="../../UG/UG_frame13Attributes.html">HDF5 
            Attributes</a>&rdquo; chapter of the 
            <a href="../../UG/UG_front.html"><cite>HDF5 User&rsquo;s 
            Guide</cite></a>
        <li>The &ldquo;<a href="../../RM/RM_H5A.html">H5A: Attribute 
            Interface</a>&rdquo; section in the 
            <a href="../../RM/RM_H5Front.html"><cite>HDF5 
            Reference Manual</cite></a>. 
    </ul>

<h3>Library Metadata</h3>
    Aside from the hierarchical structure of a file, library metadata is 
    generally opaque to the user.  
    <p>
    If a file&rsquo;s structure is unknown, it can be determined through 
    functions described in the 
    &ldquo;<a href="../../RM/RM_H5L.html">H5L: Link Interface</a>,&rdquo; 
    &ldquo;<a href="../../RM/RM_H5O.html">H5O: Object Interface</a>,&rdquo; and 
    &ldquo;<a href="../../RM/RM_H5G.html">H5G: Group Interface</a>&rdquo; 
    sections of the
    <a href="../../RM/RM_H5Front.html"><cite>HDF5 Reference Manual</cite></a>. 

<h3>Managing Metadata</h3>
<h4>Metadata Cache</h4>
    Significant performance gains can be achieved in certain circumstances 
    by directly managing metadata I/O.  This occurs most frequently in a 
    high-performance computing (HPC) environment or when working with 
    large data and complex access patterns.  
    Managing the metadata cache can be a complex undertaking and 
    should not be undertaken without careful study.  
    <p>
    These issues are discussed in detail in 
    &ldquo;<a href="../../Advanced/MetadataCache/index.html">Metadata 
    Caching in HDF5</a>,&rdquo; a document in the collection 
    <a href="../../Advanced.html"><cite>Advanced Topics in HDF5</cite></a>.
    <p>
    The HDF5 functions used to manage metadata caching are described in the 
    &ldquo;<a href="../../RM/RM_H5F.html">H5F: File Interface</a>&rdquo; and 
    &ldquo;<a href="../../RM/RM_H5P.html">H5P: Property List Interface</a>&rdquo; 
    sections of the 
    <a href="../../RM/RM_H5Front.html"><cite>HDF5 Reference Manual</cite></a>. 
    Look for functions with names containing the string <code>'_mdc'</code>.

<h4>Metadata Journaling</h4>
    Some HDF5 applications can run for a very long time, 
    sometimes for several days or even weeks. 
    In such cases, an unexpected failure can cause the loss of 
    all computed results that have not yet been written to storage.  
    HDF5 provides the ability to periodically flush raw data to storage 
    to guard against complete loss, but preserving metadata in the case 
    of such a failure has been more problematic. 
    HDF5 will introduce metadata journaling in HDF5 Release 1.10 
    to address this issue, making it possible to reconstruct metadata 
    in the event of such an event.
    <p>
    In release 1.10, metadata journaling functions will be described in 
    the <cite>HDF5 Reference Manual</cite> 
    and a detailed discussion of their use is expected to be included 
    in the collection 
    <cite>Advanced Topics in HDF5</cite>.


<!-- THIS INFORMATION [AND MUCH MORE] IS ALREADY IN "ADDITIONAL INFORMATION"  -->
<!-- IMMEDIATELY PRECEDING
<h2>Additional Resources</h2>
    <ul>
        <li><a href="../../H5.format.html"><cite>HDF5 
            File Format Specification</cite></a>
        <li><a href="../../UG/index.html"><cite>HDF5 
            User&rsquo;s Guide</cite></a>
        <li><a href="../../RM/RM_H5Front.html"><cite>HDF5 
            Reference Manual</cite></a>
        <li>&ldquo;<a href="../../Advanced/MetadataCache/index.html">Metadata 
            Caching in HDF5</a>&rdquo; 
    </ul>
-->

<!--
---------1---------2---------3---------4---------5---------6---------7---------8
-->



<hr /><br />
<p>
Return to &ldquo;<a href="../../Advanced.html">Advanced Topics</a>.&rdquo;</p>
<br />


<hr>
<!-- #BeginLibraryItem "/ed_libs/Footer-THGonly.lbi" -->
<address>
<table width="100%" border="0">
  <tr valign="top">
      <td align="left">
          <address>
          The HDF Group Help Desk: <img src="../../Graphics/help.png" align=top height=16>
          <br>
          Describes HDF5 Release 1.8.13, May 2014.
          </address>
      </td><td width="5%">&nbsp;</td>
      <td align="right">
          <a href="../../Copyright.html">Copyright</a> by
          <a href="http://www.hdfgroup.org">The HDF Group</a>
      </td>   
  </tr>   
</table>
</address>
<!-- #EndLibraryItem --><html><SCRIPT LANGUAGE="JAVASCRIPT">
<!--
document.writeln("Last modified: 20 July 2011");
-->
</SCRIPT>
 
</body>
</html>