diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-06-26 14:41:59 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-06-26 14:41:59 (GMT) |
commit | 8846157e5985458fd0a3ddb47658a14d10fb97b2 (patch) | |
tree | f542f006bbe7cfa82455610de5e329b3667c6284 /tools/testfiles | |
parent | 4dfad81062f0b195ee9fd10f0b4e5ba2f6056aeb (diff) | |
download | hdf5-8846157e5985458fd0a3ddb47658a14d10fb97b2.zip hdf5-8846157e5985458fd0a3ddb47658a14d10fb97b2.tar.gz hdf5-8846157e5985458fd0a3ddb47658a14d10fb97b2.tar.bz2 |
[svn-r12437] Purpose:
new feature. h5dump output of binary data
Description:
a new switch -b FILE_NAME that dumps the contents of memory data to file FILE_NAME in binary form
new program binread.c that reads the contents of this file and outputs it to stdout
added a test for the h5dump shell script that does a run of -b
the binread.c program reads the data used in this run, usage is ./binread FILE_NAME
Solution:
Platforms tested:
linux
solaris
AIX
Misc. update:
Diffstat (limited to 'tools/testfiles')
-rw-r--r-- | tools/testfiles/tbin.ddl | 11 | ||||
-rw-r--r-- | tools/testfiles/tnofilename.ddl | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tools/testfiles/tbin.ddl b/tools/testfiles/tbin.ddl new file mode 100644 index 0000000..0ffebb8 --- /dev/null +++ b/tools/testfiles/tbin.ddl @@ -0,0 +1,11 @@ +############################# +Expected output for 'h5dump -d integer -b out.bin test1.h5' +############################# +HDF5 "test1.h5" { +DATASET "integer" { + DATATYPE H5T_STD_I32LE + DATASPACE SIMPLE { ( 2 ) / ( 2 ) } + DATA { + } +} +} diff --git a/tools/testfiles/tnofilename.ddl b/tools/testfiles/tnofilename.ddl index 36cbcad..2b9107a 100644 --- a/tools/testfiles/tnofilename.ddl +++ b/tools/testfiles/tnofilename.ddl @@ -20,6 +20,7 @@ usage: h5dump [OPTIONS] file -g P, --group=P Print the specified group and all members -l P, --soft-link=P Print the value(s) of the specified soft link -o F, --output=F Output raw data into file F + -b F Output raw data into file F in binary form (use with -d) -t P, --datatype=P Print the specified named data type -w N, --width=N Set the number of columns of output -x, --xml Output in XML using Schema |