Re: Large file writing error

From: Dave Allured <dave.allured_at_nyahnyahspammersnyahnyah>
Date: Fri, 28 Nov 2008 14:19:35 -0700

Sang-Ki Kim,

I think that NCL's method 2 for creating a large Netcdf file will do
what you want.

   http://www.ncl.ucar.edu/Applications/method_2.shtml

Ensure that one dimension such as "time" is defined as the unlimited
dimension, using filedimdef. This will allow NCL to manage the data
portion of the file as a set of sequential records, instead of a
single giant slab.

You can also try some of the alternative large file formats shown
under the "Format" options for Netcdf file. But the default Netcdf
3 classic format is best for simple data variables, because of
better compatibility with other software.

http://www.ncl.ucar.edu/Document/Functions/Built-in/setfileoption.shtml#Description

Dave Allured
CU/CIRES Climate Diagnostics Center (CDC)
http://cires.colorado.edu/science/centers/cdc/
NOAA/ESRL/PSD, Climate Analysis Branch (CAB)
http://www.cdc.noaa.gov/

Sang-Ki Kim wrote:
> Dear NCL users,
>
> When I write netCDF file using the NCL, following error messages occurred.
>
> =================================================================
>
> ncendef: ncid 8: One or more variable sizes violate format constraints
>
> ncvarput: ncid 8: Operation not allowed in define mode
>
> fatal:NetCdf: An error occurred while attempting to write variable (mdt)
> to file (SEP1.721x1440L26.staggered.template.nc)
>
> fatal:Execute: Error occurred at or near line 224 in file template.ncl
>
> fatal:Execute: Error occurred at or near line 202 in file
> create_template.ncl
>
> ncclose: ncid 8: One or more variable sizes violate format constraints
>
> ==================================================================
>
>
>
> When the size of the file to write is small (< 2GB), netCDF file is
> written successfully.
>
> However, when the size become more than 2 GB, above error messages are
> occurred.
>
>
>
> I don’t think that large(>2GB) file cannot be written in my system
> because of my model output(netCDF format) is about 10GB.
>
> What can I do to write large netCDF file using the NCL?
>
>
>
> Thanks,
>
>
>
> Sank-Ki Kim
>
> ===================================
>
> Sang-Ki Kim
> Convection and Urban Meteorology Group
> Program in Atmospheric Sciences
> School of Earth and Environmental Sciences
> Seoul National University, Seoul 151-742, KOREA
> Phone) + 82 (2) 880-1474
> Email) ksk14307_at_snu.ac.kr <mailto:jyhan_at_cum.snu.ac.kr>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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 Fri Nov 28 2008 - 14:19:35 MST

This archive was generated by hypermail 2.2.0 : Sun Nov 30 2008 - 08:25:42 MST