summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dump.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-07-31 16:04:31 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-07-31 16:04:31 (GMT)
commit70b46a1d89e7f9f4a82748a9e1cc21fb4f121ebe (patch)
tree00adcecf22f1b73a490f2adabcd582710a2f5ea9 /tools/h5dump/h5dump.c
parent87449d081d1c99312034d917502f2b6aca2ee60c (diff)
downloadhdf5-70b46a1d89e7f9f4a82748a9e1cc21fb4f121ebe.zip
hdf5-70b46a1d89e7f9f4a82748a9e1cc21fb4f121ebe.tar.gz
hdf5-70b46a1d89e7f9f4a82748a9e1cc21fb4f121ebe.tar.bz2
[svn-r12518] h5dump binary output:
1. changed the -F flag option names to "BE and "LE" for big and little endian 2. added a more verbose usage message for these options 3. add a new test 4. add a make clean instruction to *.bin
Diffstat (limited to 'tools/h5dump/h5dump.c')
-rw-r--r--tools/h5dump/h5dump.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index 5b5df95..4bd388a 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -598,7 +598,10 @@ usage(const char *prog)
fprintf(stdout, " -l P, --soft-link=P Print the value(s) of the specified soft link\n");
fprintf(stdout, " -o F, --output=F Output raw data into file F\n");
fprintf(stdout, " -b F Output raw data into file F in binary form (use with -d)\n");
- fprintf(stdout, " -F T Form of binary output (T can be NA for native type, DI for the disk file type, LI or BI for pre-existing little or big endian types)\n");
+ fprintf(stdout, " -F T Form of binary output (T can be NA for native type,\n");
+ fprintf(stdout, " DI for the disk file type, LE or BE for pre-existing little or big endian types)\n");
+ fprintf(stdout, " E.g., to dump a dataset called 'integer' in a file called `test1.h5', use\n");
+ fprintf(stdout, " h5dump -b bin.out -F LE -d integer test1.h5\n");
fprintf(stdout, " -t P, --datatype=P Print the specified named data type\n");
fprintf(stdout, " -w N, --width=N Set the number of columns of output\n");
fprintf(stdout, " -x, --xml Output in XML using Schema\n");
@@ -2725,9 +2728,9 @@ set_binary_form(const char *form)
bform = 0;
else if (strcmp(form,"DI")==0) /* file type form */
bform = 1;
- else if (strcmp(form,"LI")==0) /* convert to little endian */
+ else if (strcmp(form,"LE")==0) /* convert to little endian */
bform = 2;
- else if (strcmp(form,"BI")==0) /* convert to big endian */
+ else if (strcmp(form,"BE")==0) /* convert to big endian */
bform = 3;