python and HDF

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sheldon

    #1

    python and HDF

    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

  • Marc 'BlackJack' Rintsch

    #2
    Re: python and HDF

    In <1150376026.665 920.50860@h76g2 000cwa.googlegr oups.com>, Sheldon wrote:
    [color=blue]
    > 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?[/color]

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

    Ciao,
    Marc 'BlackJack' Rintsch

    Comment

    • Sheldon

      #3
      Re: python and HDF

      Marc 'BlackJack' Rintsch skrev:
      [color=blue]
      > In <1150376026.665 920.50860@h76g2 000cwa.googlegr oups.com>, Sheldon wrote:
      >[color=green]
      > > 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?[/color]
      >
      > Not from this description. How do you read the data with Python? Which C
      > library/wrapper do you use?
      >
      > Ciao,
      > Marc 'BlackJack' Rintsch[/color]

      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

      Comment

      Working...