Re: NetCDF error: NetCDF: One or more variable sizes violate format constraints

From: Wei Huang <huangwei_at_nyahnyahspammersnyahnyah>
Date: Sat Nov 03 2012 - 09:40:02 MDT

Patrick,

Check site:
http://www.ncl.ucar.edu/Document/Functions/Built-in/setfileoption.shtml

You should use:
Example 4
In order to write large variables (>2GB) to a NetCDF file you have to set the NetCDF Format option to LargeFile or to NetCDF4Classic.

   setfileoption("nc","Format","LargeFile")
or
   setfileoption("nc","Format","NetCDF4Classic")

Wei

huangwei@ucar.edu
VETS/CISL
National Center for Atmospheric Research
P.O. Box 3000 (1850 Table Mesa Dr.)
Boulder, CO 80307-3000 USA
(303) 497-8924

On Nov 3, 2012, at 8:15 AM, Patrick C. Campbell wrote:

> Hello,
>
> I am on NCAR's Bluefire computer, and wondering if someone had some insight on the following error when using NCL to write a variable to a newly created netCDF file using addfile:
>
> NetCDF error: One or more variable sizes violate format constraints.
>
> It appears my script works fine when writing to a smaller file, and writes some other variables to my larger file previously in the script, o I figured it had to do with the size of the variable (file) becoming too large when trying to write the final variable ( > 2 GB). Thus I had tried the following fix after searching the web:
>
> setfileoption("mylargefile.nc", "Format", "LargFile")
>
> However, I receive the same error when using this command in my script.
>
> Does anyone have any suggestions? Could I still get the same error if the problem is different than the size of the netCDF file?
>
> Thanks!
>
> Patrick
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Nov 3 09:40:37 2012

This archive was generated by hypermail 2.1.8 : Tue Nov 06 2012 - 15:05:49 MST