HDFView exports data to text according to what is displayed in the
table, i.e.
a row of numbers will be printed out in a single line in the text file.
You can
also set the delimiter at Tools-->User Options. Also, HDFView can only print
up to 2D a time since the table view can only show 2D (row x column) a time.
h5dump prints out the whole dataset. Each line wraps according to certain
number of characters in a line. You can use "-w" option to set the number
of columns.
-w N, --width=N Set the number of columns of output. A value
of 0 (zero)
sets the number of columns to the maximum
(65535).
Default width is 80 columns.
For 2D dataset, if you set "N" large enough, e.g. 3000, the output should
be close to hdfivew output.
e.g.
h5dump -w 3000 -d /dataset -o dataset.txt -y testfile.hdf
Thanks
--pc
On 8/26/2010 4:33 AM, onpr wrote:
Hello all!
I'm using h5dump to convert hdf dataset to ASCII file as:
h5dump -d /dataset -o dataset.txt -y testfile.hdf
But output is different from what i get using "Export Data to File" command
from HDFView.
My question is: what parameters should i useng in h5dump to get output
exactly as in "Export Data to File" command ?
Thanks!
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org