2.2.2.4. View a NeXus HDF5 file with h5dumpΒΆ

The h5dump tool [1] provided as part of the HDF5 tool kit [2] can be used to print the content of an HDF5 file. As an example we show the result of the command h5dump simple3D.h5 on the result of HDF5 in Python with NAPI

 1HDF5 "simple3D.h5" {
 2GROUP "/" {
 3   ATTRIBUTE "NeXus_version" {
 4      DATATYPE  H5T_STRING {
 5            STRSIZE 5;
 6            STRPAD H5T_STR_NULLTERM;
 7            CSET H5T_CSET_ASCII;
 8            CTYPE H5T_C_S1;
 9         }
10      DATASPACE  SCALAR
11      DATA {
12      (0): "4.1.0"
13      }
14   }
15   ATTRIBUTE "file_name" {
16      DATATYPE  H5T_STRING {
17            STRSIZE 11;
18            STRPAD H5T_STR_NULLTERM;
19            CSET H5T_CSET_ASCII;
20            CTYPE H5T_C_S1;
21         }
22      DATASPACE  SCALAR
23      DATA {
24      (0): "simple3D.h5"
25      }
26   }
27   ATTRIBUTE "HDF5_Version" {
28      DATATYPE  H5T_STRING {
29            STRSIZE 5;
30            STRPAD H5T_STR_NULLTERM;
31            CSET H5T_CSET_ASCII;
32            CTYPE H5T_C_S1;
33         }
34      DATASPACE  SCALAR
35      DATA {
36      (0): "1.6.6"
37      }
38   }
39   ATTRIBUTE "file_time" {
40      DATATYPE  H5T_STRING {
41            STRSIZE 24;
42            STRPAD H5T_STR_NULLTERM;
43            CSET H5T_CSET_ASCII;
44            CTYPE H5T_C_S1;
45         }
46      DATASPACE  SCALAR
47      DATA {
48      (0): "2011-11-18 17:26:27+0100"
49      }
50   }
51   GROUP "entry" {
52      ATTRIBUTE "NX_class" {
53         DATATYPE  H5T_STRING {
54               STRSIZE 7;
55               STRPAD H5T_STR_NULLTERM;
56               CSET H5T_CSET_ASCII;
57               CTYPE H5T_C_S1;
58            }
59         DATASPACE  SCALAR
60         DATA {
61         (0): "NXentry"
62         }
63      }
64      GROUP "data" {
65         ATTRIBUTE "NX_class" {
66            DATATYPE  H5T_STRING {
67                  STRSIZE 6;
68                  STRPAD H5T_STR_NULLTERM;
69                  CSET H5T_CSET_ASCII;
70                  CTYPE H5T_C_S1;
71               }
72            DATASPACE  SCALAR
73            DATA {
74            (0): "NXdata"
75            }
76         }
77         DATASET "test" {
78            DATATYPE  H5T_STD_I32LE
79            DATASPACE  SIMPLE { ( 2, 3, 4 ) / ( 2, 3, 4 ) }
80            DATA {
81            (0,0,0): 0, 1, 2, 3,
82            (0,1,0): 4, 5, 6, 7,
83            (0,2,0): 8, 9, 10, 11,
84            (1,0,0): 12, 13, 14, 15,
85            (1,1,0): 16, 17, 18, 19,
86            (1,2,0): 20, 21, 22, 23
87            }
88            ATTRIBUTE "signal" {
89               DATATYPE  H5T_STD_I32LE
90               DATASPACE  SCALAR
91               DATA {
92               (0): 1
93               }
94            }
95         }
96      }
97   }
98}
99}