The hdfls utility provides general information about the HDF data objects in a file. This information includes the tags and reference numbers of the data objects, the lengths and offsets of the HDF object's data elements, the contents of DD blocks, and information regarding special elements. In situations where the DD block information is not needed, we recommend the hdp utility with the
list
command and its options.
hdfls [-o][-l][-d][-v][-g][-s][-h][-t #] filenameWhen no flags are used, hdfls displays data objects ordered by the tags and reference numbers. Contents of the DD blocks and lengths and offsets of the data elements are not displayed.
The option flags are described in Table 15K.
SDSchunked.hdf
, created by the example..... in Chapter 3, contains one chunked data set.
hdfls -s
can be used to display information about the data objects and special elements in this file. Note that data objects are listed in tag and reference number ascending order.For example, the command
hdfls -s SDSchunked.hdfwould display the following output:
SDSchunked.hdf:
File library version: Major= 4, Minor=1, Release=2
String=NCSA HDF post Version 4.1 Release 2, March 1998
Linked Blocks Indicator : (tag 20)
Ref no 1 12 bytes
Ref no 2 34 bytes
Ref no 3 4096 bytes
Version Descriptor : (tag 30)
Ref no 1 92 bytes
Data Chunk : (tag 61)
Ref no 1 12 bytes
Ref no 2 12 bytes
Ref no 3 12 bytes
Ref no 4 12 bytes
Ref no 5 12 bytes
Ref no 6 12 bytes
Number type : (tag 106)
Ref no 12 4 bytes
SciData dimension record : (tag 701)
Ref no 12 22 bytes
Numeric Data Group : (tag 720)
Ref no 2 16 bytes
Vdata : (tag 1962)
Ref no 4 116 bytes
Ref no 7 60 bytes
Ref no 9 60 bytes
Ref no 11 60 bytes
Vdata Storage : (tag 1963)
Ref no 7 4 bytes
Ref no 9 4 bytes
Ref no 11 2 bytes
Vgroup : (tag 1965)
Ref no 8 33 bytes
Ref no 10 33 bytes
Ref no 13 60 bytes
Ref no 14 47 bytes
Special Scientific Data : (tag 17086)
Ref no 3 72 bytes
Chunked Element:
logical size: 12
number of dimensions: 2
array of chunk lengths for each dimension: 3 2
Special Vdata Storage : (tag 18347)
Ref no 4 72 bytes
Linked Block: first 12 standard 4096 per unit 16