Marc 'BlackJack' Rintsch skrev: > In <[EMAIL PROTECTED]>, Sheldon wrote: > > > 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
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 -- http://mail.python.org/mailman/listinfo/python-list