mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[svn-r9543] Purpose:
Bug fix (#264) Description: h5dump did not print attribute data in ASCII format when -r is used. Solution: Added the ability to print in ASCII for Attributes Data also. Added a test for printing Attributes with -r option. tall-2B.ddl is the standard output for printing attributes with -r option. Platforms tested: H5committested. Also in heping. Misc. update: Update MANIFEST.
This commit is contained in:
parent
e52f682ced
commit
9070897283
65
tools/testfiles/tall-2B.ddl
Normal file
65
tools/testfiles/tall-2B.ddl
Normal file
@ -0,0 +1,65 @@
|
||||
#############################
|
||||
Expected output for 'h5dump -A -r tall.h5'
|
||||
#############################
|
||||
HDF5 "tall.h5" {
|
||||
GROUP "/" {
|
||||
ATTRIBUTE "attr1" {
|
||||
DATATYPE H5T_STD_I8BE
|
||||
DATASPACE SIMPLE { ( 10 ) / ( 10 ) }
|
||||
DATA {
|
||||
"abcdefghi\000"
|
||||
}
|
||||
}
|
||||
ATTRIBUTE "attr2" {
|
||||
DATATYPE H5T_STD_I32BE
|
||||
DATASPACE SIMPLE { ( 2, 2 ) / ( 2, 2 ) }
|
||||
DATA {
|
||||
(0,0): 0, 1,
|
||||
(1,0): 2, 3
|
||||
}
|
||||
}
|
||||
GROUP "g1" {
|
||||
GROUP "g1.1" {
|
||||
DATASET "dset1.1.1" {
|
||||
DATATYPE H5T_STD_I32BE
|
||||
DATASPACE SIMPLE { ( 10, 10 ) / ( 10, 10 ) }
|
||||
ATTRIBUTE "attr1" {
|
||||
DATATYPE H5T_STD_I8BE
|
||||
DATASPACE SIMPLE { ( 27 ) / ( 27 ) }
|
||||
DATA {
|
||||
"1st attribute of dset1.1.1\000"
|
||||
}
|
||||
}
|
||||
ATTRIBUTE "attr2" {
|
||||
DATATYPE H5T_STD_I8BE
|
||||
DATASPACE SIMPLE { ( 27 ) / ( 27 ) }
|
||||
DATA {
|
||||
"2nd attribute of dset1.1.1\000"
|
||||
}
|
||||
}
|
||||
}
|
||||
DATASET "dset1.1.2" {
|
||||
DATATYPE H5T_STD_I32BE
|
||||
DATASPACE SIMPLE { ( 20 ) / ( 20 ) }
|
||||
}
|
||||
}
|
||||
GROUP "g1.2" {
|
||||
GROUP "g1.2.1" {
|
||||
SOFTLINK "slink" {
|
||||
LINKTARGET "somevalue"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
GROUP "g2" {
|
||||
DATASET "dset2.1" {
|
||||
DATATYPE H5T_IEEE_F32BE
|
||||
DATASPACE SIMPLE { ( 10 ) / ( 10 ) }
|
||||
}
|
||||
DATASET "dset2.2" {
|
||||
DATATYPE H5T_IEEE_F32BE
|
||||
DATASPACE SIMPLE { ( 3, 5 ) / ( 3, 5 ) }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user