Hi,
I do not want to create a new issue yet. Since the problem is probably is that NETCDF3_CLASSIC option cannot handle big files.
But of course it is only my opinion which could be wrong.
Here is the error message the attached script generates:
Traceback (most recent call last):
File "test_nc4.py", line 29, in <module>
latVariable[:] = lat2d
File "netCDF4.pyx", line 2884, in netCDF4.Variable.__setitem__ (netCDF4.c:36319)
File "netCDF4.pyx", line 3013, in netCDF4.Variable._put (netCDF4.c:37295)
RuntimeError: NetCDF: Operation not allowed in define mode
when you decrease the number of time steps saved to 1000 or change the format to NETCDF4_CLASSIC, the program works OK.
So I would suggest somewhat more indicative error message. Especially for the people who never used C version of the library, what's define mode is a mystery ...
Cheers
--
Oleksandr (Sasha) Huziy