[ncl-talk] esmf regrid
Mary Haley
haley at ucar.edu
Fri Sep 22 13:00:30 MDT 2017
Hi Jonathan,
The issue might be with these lines:
Opt at SrcLargeFile = "True"
Opt at DstLargeFile = "True"
You don't want to use quotes when you are using logicals. Try:
Opt at SrcLargeFile = True
Opt at DstLargeFile = True
You will also need:
Opt at WgtLargeFile = True
I believe these should be the default in NCL V6.4.0. If you are using 6.4.0
and still seeing these errors, then would it be possible for you to provide
the data and your latest script? If your data file is large, then perhaps
you can write just a subset of it to a new file. You can email me offline
if you want help with this.
--Mary
On Thu, Sep 21, 2017 at 2:00 PM, David Brown <dbrown at ucar.edu> wrote:
> You need to set the option to write out the files as NetCDF4 instead of
> NetCDF3.
>
> From ESMF_regrid doc page:
>
> The NetCDF files created by this function are written with "large file
> support" turned on. This creates a "64-bit offset" NetCDF file under
> the hood and allows you to write variables > 2 GB but less than 4 GB.
>
> If you are working with large data files that require more than 4 GB,
> you may need to set one or more of the NetCDFType options to
> "netcdf4". This will force a NetCDF4 file to be written under the hood
> and will allow you to write variables that are > 4 GB.
>
>
> Hope this helps.
> -dave
>
> On Thu, Sep 21, 2017 at 1:38 PM, Buzan, Jonathan R <jbuzan at purdue.edu>
> wrote:
> > Thanks Marston Ward,
> >
> > I rewrote the script, and I am using a proper domain file that does not
> have the -90.25/90.25.
> > I still receive the same error:
> >
> > (0) get_src_grid_info: source lat dims = (17400)
> > (0) get_src_grid_info: source lon dims = (43200)
> > (0) get_src_grid_info: source grid type is 'rectilinear'
> > 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 (source_grid_file.nc)
> > fatal:["Execute.c":8575]:Execute: Error occurred at or near line 1704
> in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
> >
> > fatal:["Execute.c":8575]:Execute: Error occurred at or near line 1840
> in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
> >
> > fatal:["Execute.c":8575]:Execute: Error occurred at or near line 3869
> in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
> >
> > fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4001
> in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
> >
> > fatal:["Execute.c":8573]:Execute: Error occurred at or near line 106
> >
> >
> >
> >
> >
> >
> >
> >> On Sep 21, 2017, at 3:33 PM, Marston Johnston <shejo284 at gmail.com>
> wrote:
> >>
> >> If you read the output error you can see that:
> >>
> >> min/max Extlat2d: -90.25/90.25
> >>
> >> is clearly wrong as there can be no such points.
> >>
> >> It good practice to read the error messages carefully. They often times
> tell you what’s wrong.
> >>
> >> /M
> >>
> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >> Marston S. Ward, PhD
> >> Department of Earth Sciences
> >> University of Gothenburg, Sweden
> >> Email: marston.johnston at gu.se
> >> SkypeID: marston.johnston
> >> Phone: +46-31-7864901
> >> Only the fruitful thing is true!
> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>
> >>
> >> On 2017-09-21, 20:32, "ncl-talk on behalf of Buzan, Jonathan R" <
> ncl-talk-bounces at ucar.edu on behalf of jbuzan at purdue.edu> wrote:
> >>
> >> min/max Extlat2d: -90.25/90.25
> >>
> >>
> >
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk at ucar.edu
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> _______________________________________________
> 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/20170922/4405244d/attachment.html>
More information about the ncl-talk
mailing list