python and HDF

S

Sheldon

Hi,

I am using a HLHDF C wrapper to extract data from HDF (version 5)
files.
I can view the contents with IDL, for example, and read the attributes
in the HDF file. There is one attribute that I extracted and only of
part of the string was returned. In the HDF file, the attribute data is
a name which is called "baseline" but when python reads it, it returns
"baselin" instead.
Does anyone have any idea why this is happening?

Sincerely,
Sheldon
 
M

Marc 'BlackJack' Rintsch

I am using a HLHDF C wrapper to extract data from HDF (version 5)
files.
I can view the contents with IDL, for example, and read the attributes
in the HDF file. There is one attribute that I extracted and only of
part of the string was returned. In the HDF file, the attribute data is
a name which is called "baseline" but when python reads it, it returns
"baselin" instead.
Does anyone have any idea why this is happening?

Not from this description. How do you read the data with Python? Which C
library/wrapper do you use?

Ciao,
Marc 'BlackJack' Rintsch
 
S

Sheldon

Marc 'BlackJack' Rintsch skrev:
Not from this description. How do you read the data with Python? Which C
library/wrapper do you use?

Ciao,
Marc 'BlackJack' Rintsch

Hi

I an using HLHDF developed locally. I found someone who said that if
the string was written to the HDF file with being NULL+1 terminated
then this would happen.

Sounds good to me. Thanks for your help.

/Sheldon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,949
Members
47,500
Latest member
ArianneJsb

Latest Threads

Top