[ncl-talk] Error: ESMF to map 10min to 30 sec

Rick Brownrigg brownrig at ucar.edu
Thu Sep 20 10:17:28 MDT 2018


Hi Sarah,

I'm not expert at this, but it sounds like you might be writing a variable
larger than 2GB?  This FAQ from Unidata specifically mentions the error
message you are getting:

    https://www.unidata.ucar.edu/software/netcdf/faq-lfs.html

I see you are using "NetCDF4Classic" in your setfileoption calls, and I
*think* that has the 2GB limit that NetCDF3 has -- it may be the case you
need to use either "NetCDF4" or "*64BitOffset*" instead to write large
variables.

Hope that helps...
Rick

On Thu, Sep 20, 2018 at 8:37 AM, Sarah Bradley - CITG <
S.L.Bradley-1 at tudelft.nl> wrote:

> Hello
>
> I am trying to map a 10min global file to a 30 sec grid using the ESMF
> mapping software
>
> I have attached my ncl script
>
> The error message I receive is:
>
> Copyright (C) 1995-2017 - All Rights Reserved
>  University Corporation for Atmospheric Research
>  NCAR Command Language Version 6.4.0
>  The use of this software is governed by a License Agreement.
>  See http://www.ncl.ucar.edu/ for more details.
> (0) =====> CPU Elapsed Time: rectilinear_to_SCRIP: 1.408 seconds <=====
> ncendef: ncid 196608: NetCDF: One or more variable sizes violate format
> constraints
> fatal:NetCDF: Operation not allowed in define mode: error attempting to
> write variable (grid_dims) to file (destination_grid_file.nc)
> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 1711 in
> file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
>
> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 1847 in
> file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
>
> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 3910 in
> file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
>
> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 4051 in
> file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
>
> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 90 in
> file remap_10min-30sec_ESMF.ncl
>
> I found that as the 30sec file was large, I needed to specify this in the
> script.
>
> I hope you can help,
>
> Sarah Bradley
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180920/b28e2404/attachment.html>


More information about the ncl-talk mailing list