HDF files with multiple variables with the same name

From: Sourish Basu <S.Basu_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 25 2010 - 02:55:20 MDT

Hi all,

    I have an HDF file with 4 variables, all called "T" and all with the
same dimensions. I didn't create it, but I have to use it :-) My
predecessors used the fortran interface for HDF4 to read that file, and
somehow the fortran code is OK with reading four variables, all called
"T". When I use "hdfdump" on the file, I see four entries called "float
T". But when I use PyNIO, I see three variables called "T__1", "T__2"
and "T__3". There is no fourth variable.

    So my question is: does PyNIO have a protocol for handling such
files? Since the HDF was created in the first place, I assume that the
HDF format supports such a construction (4 variables, all called "T").
But is it expected that PyNIO only sees 3 of them? That seems a bit random.

    FYI, my versions are:

[4]: Nio.__version__
[4]: '1.3.0b4'

[6]: numpy.__version__
[6]: '1.3.0'

$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.4.1-4ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --enable-multiarch --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4
--program-suffix=-4.4 --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-objc-gc --disable-werror
--with-arch-32=i486 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)

$ uname -a
Linux Poppysmic 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC
2010 x86_64 GNU/Linux


pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:

Received on Thu Mar 25 02:55:01 2010

This archive was generated by hypermail 2.1.8 : Mon Mar 29 2010 - 12:19:51 MDT