Hi Barbara,

Sorry for the long delay.
Yes, it works.

Many thanks!

Giorgio

On 31/05/12 17:36, Barbara Jones wrote:

Hello Giorgio,

it does not work.

If I issue:

hdp dumpsds -n "Daily Avg, Tot-Sky, Sfc Net LW Flux - Mod B" -d
file_name.hdf > test_var.dat

I simply get the same error messages in the file test_var.dat


The problem is that "Daily Avg, Tot-Sky, Sfc Net LW Flux - Mod B" is the
name of a single variable, but hdp interprets it as a list of three
different variables separated by commas.

Any idea?

Ah! I misunderstood. This looks like it could be a bug in hdp.
(I don't see how to escape the comma, which is the names delimiter for
the -n option; I'll verify that.)

A workaround is to rename the SDS and get rid of the commas. I have
attached a simple C program that will allow you to do that. (Be sure
to make a copy of your file before doing this!)

In the C program, change:

FILENAME to your HDF file name
DNAME to "Daily Avg, Tot-Sky, Sfc Net LW Flux - Mod B"
NEWDNAME to "Daily Avg Tot-Sky Sfc Net LW Flux - Mod B"

Will that work for you?

-Barbara


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
____________________________
Giorgio Dall'Olmo
Plymouth Marine Laboratory
Prospect Place
The Hoe
Plymouth
PL1 3DH
UK

phone: +44-(0)1752-633429
  fax: +44-(0)1752-633101

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to