[ncl-talk] ESMF
Dennis Shea
shea at ucar.edu
Mon May 20 12:27:10 MDT 2019
The error messages are not directly from NCL.
Rather, they are from the Fortran-90 code used by the underlying ESMF
software invoked by NCL.
---
20190519 172019.181 ERROR PET0 ESMF_IOScrip.*F90*:1322
*ESMF_OutputScripWeightFile
*netCDF Status Return Error
20190519 172019.181 ERROR PET0
ESMF_RegridWeightGen.*F90*:1395 *ESMF_RegridWeightGenFile
*Failure - Internal subroutine call returned Error
---
I **speculate** that the weight file may exceed a size limit.
*esmf_regrid*
<http://www.ncl.ucar.edu/Document/Functions/ESMF/ESMF_regrid.shtml>
As noted in the function documentation:
*SrcNetCDFType* / *DstNetCDFType* / *WgtNetCDFType* (default = "netcdf3")
Set these options or "NetCDFType" to "netcdf4" to force a NetCDF-4 file to
be written for the source, destination, and/or weights files. This will be
necessary if your source and/or destination grids or meshes are large, and
require more than 2 GB to store them and/or the weights file in the NetCDF
file. Try:
opt at WgtFileName = "weights.nc"
opt@*WgtNetCDFType* = "netcdf4" *; <=======*
Good Luck
=== quote
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
<http://www.ncl.ucar.edu/Document/Functions/ESMF/ESMF_regrid.shtml#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.
=== end quote
Try
*setfileoption*("nc","Format","NetCDF4")
prior to invoking the ESMF regrid function.
On Mon, May 20, 2019 at 8:45 AM Gurer, Kemal at ARB <kemal.gurer at arb.ca.gov>
wrote:
> Dear ncl community,
>
>
>
> I can regrid unstructured MPAS output that has nearly 800,000 nCells and
> 55 vertical levels to a 0.1 degree resolution rectangular grid using ESMF,
> but cannot regrid the data for any higher resolution than 0.1 degree such
> as 0.05 degree. Source and destination netcdf files are written but weights
> file is not generated with “ESMF_RegridWeightGenFile” error. I attached
> the ncl script that I use for regridding as well as PET0.*.log file and
> error output dumped to the screen to this email. I am running the script on
> Centos Linux 6.2 with 128 Gb of RAM. I am using ncl 6.4.0. What is the
> highest resolution that I can regrid this data set to? Thank you for any
> information that you can give.
>
>
>
> Kemal.
>
>
> _______________________________________________
> 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/20190520/c890ef38/attachment.html>
More information about the ncl-talk
mailing list