Re: PyNIO and NetCDF file sizes - File too large

From: Carl Drews <drews_at_nyahnyahspammersnyahnyah>
Date: Wed Jan 20 2010 - 13:35:19 MST

Mary -

Here are my results from the same commands you ran:

> python
Python 2.5.2 (r252:60911, Dec 31 2008, 10:26:09)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Nio
>>> Nio.__version__
'1.3.0b1'
>>> a = Nio.open_file('ocean_his-T1.nc')
fatal:File too large
fatal:Could not open (ocean_his-T1.nc)
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/local/python/lib/python2.5/site-packages/PyNIO/Nio.py",
line 512, in open_file
     file = _Nio.open_file(filename,mode,options,history,format)
NIOError: Unable to open file
>>> Nio
<module 'Nio' from
'/usr/local/python/lib/python2.5/site-packages/PyNIO/Nio.pyc'>
>>>
> ls -l /usr/local/python/lib/python2.5/site-packages/PyNIO/nio.so
-rwxr-xr-x 1 8338 1500 7066696 Aug 16 2008
/usr/local/python/lib/python2.5/site-packages/PyNIO/nio.so*
>

My python version is 0.0.2 behind yours, and the install path is
slightly different.

Carl

Mary Haley wrote:
> Carl,
>
> Thanks for providing the file offline.
>
> Using the PyNIO-1.3.0b1.linux-i686-gcc412-2.5.tar tarfile, along with
> Python 2.5.4 and numpy 1.3.0, I was able to open this file just fine:
>
> % python2.5
> Python 2.5.4 (r254:67916, Jan 20 2010, 12:39:42)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import Nio
> >>> Nio.__version__
> '1.3.0b1'
> >>> a = Nio.open_file('ocean_his-T1.nc')
> >>> print(a)
> Nio file: ocean_his-T1.nc
> global attributes:
> file : ocean_his.nc
> format : netCDF-3 classic file
> Conventions : CF-1.0
> . . .
> dimensions:
> xi_rho = 1801
> xi_u = 1800
> xi_v = 1801
> xi_psi = 1800
> eta_rho = 1201
> eta_u = 1201
> eta_v = 1200
> eta_psi = 1200
> boundary = 4
> ocean_time = 241 // unlimited
> Nuser = 25
> variables:
> integer ntimes
> long_name : number of long time-steps
> integer ndtfast
> long_name : number of short time-steps
>
> . . .
>
> Can you double-check that you have the same binary as me? Typing "Nio"
> in the python prompt should give you the path:
>
> >>> Nio
> <module 'Nio' from ''/usr/local/lib/python2.5/site-packages/PyNIO/Nio.pyc'>
>
> Then you can exit python and type:
>
> ls -l /usr/local//lib/python2.5/site-packages/PyNIO/nio.so
>
> Ours says:
>
> -rwxr-xr-x 1 haley contribl 7066696 Jan 20 12:46 nio.so*
>
> I believe that every 1.3.0b1 PyNIO binary should have been built with
> large file support.
>
> Maybe Dave Brown has a test you can run to double-check your PyNIO for
> this.
>
> --Mary
>
Received on Wed Jan 20 13:35:26 2010

This archive was generated by hypermail 2.1.8 : Mon Feb 01 2010 - 08:33:45 MST