Re: HDF files with multiple variables with the same name

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 25 2010 - 11:50:37 MDT

Hi Sourish,
I would like to look at this file to see what is going on. Can you
send it to our ftp site? Here are the directions:

ftp ftp.cgd.ucar.edu
login as anonymous
passwd: <your email address>
cd incoming
put <thefile>

Then email me with the file name. For security, it is not possible to
list the contents of the incoming directory.
  -dave

On Mar 25, 2010, at 2:55 AM, Sourish Basu wrote:

> 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
>
> -Sourish
>
> <S_Basu.vcf>_______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk

_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Thu Mar 25 11:50:41 2010

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