[ncl-talk] Problem with regridding BNU-ESM (curvilinear) to rectilinear
Rick Brownrigg
brownrig at ucar.edu
Sat Feb 15 10:54:52 MST 2020
Hi,
This does not appear to be a complete script; for example, where does "sst"
come from?
The error message is fairly descriptive; somewhere there's a mismatch
between the data coming in and the requirements for ESMF_regrid(). To
find/understand that, I would do:
printVarSummary(tas)
printVarSummary(sst)
printVarSummary(lat2D)
printVarSummary(lon2D)
HTH...
Rick
On Sat, Feb 15, 2020 at 10:05 AM Morteza Qadimi via ncl-talk <
ncl-talk at ucar.edu> wrote:
> Dear NCL wizards,
>
>
>
> I want to regrid BNU-ESM (which is tripolar curvilinear) to rectilinear
> using ESMF_regrid. You can find my code below:
>
>
>
> tas = in->tas
>
> lat2d = in->lat
>
> lon2d = in->lon
>
> sst at lat2d = lat2d
>
> sst at lon2d = lon2d
>
> lat = fspan(-90,90,181)
>
> lon = fspan(0.5,359.5,360)
>
>
>
> Opt = True
>
>
>
> Opt at SrcGridType = "curvilinear"
>
> Opt at SrcFileName = "ORCA_SCRIP.nc"
>
> Opt at DstFileName = "World1deg_SCRIP.nc"
>
> Opt at WgtFileName = "ORCA_2_World_SCRIP.nc"
>
> Opt at ForceOverwrite = True
>
> Opt at DstGridType = "1deg"
>
> Opt at DstTitle = "World grid 1x1 degree resolution"
>
> Opt at InterpMethod = “bilinear”
>
>
>
>
>
> tas_regrid = ESMF_regrid(sst,Opt)
>
> printVarSummary(tos_regrid)
>
>
>
> but I get an annoying error saying that:
>
>
>
> fatal:Number of dimensions in parameter (1) of (curvilinear_to_SCRIP) is
> (1), (2) dimensions were expected
>
> fatal:["Execute.c":8637]:Execute: Error occurred at or near line 3882 in
> file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
>
>
>
> fatal:["Execute.c":8637]:Execute: Error occurred at or near line 4010 in
> file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
>
>
>
> Any solution?
> _______________________________________________
> 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/20200215/78ce5cee/attachment.html>
More information about the ncl-talk
mailing list