NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[python-users] [netCDF4] Error when saving >2GB NETCDF file >> NetCDF: Operation not allowed in define mode

Hi all,

I am across this error when trying to write a new NETCDF from subset of a
LARGE NETCDF file :
Traceback (most recent call last):
  File "wrfextract.py", line 204, in <module>
    longitude[:] = lons
  File "netCDF4/_netCDF4.pyx", line 3996, in
netCDF4._netCDF4.Variable.__setitem__ (netCDF4/_netCDF4.c:43637)
  File "netCDF4/_netCDF4.pyx", line 4208, in netCDF4._netCDF4.Variable._put
(netCDF4/_netCDF4.c:45517)
RuntimeError: NetCDF: Operation not allowed in define mode
-bash-4.1$ lt /Input/WRF_AIC/WRFCorn/wrfout*


I googled around online and I have come across discussion about how saving
Netcdf files >2GB is problematic. Haven't found a Python solution though.
I am using the netCDF4 package in Python FYI.

Has anyone come across as solution in Python for this?

Thanks

-anj
  • 2016 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the python-users archives: