[ncl-talk] Problem with regridding BNU-ESM (curvilinear) to rectilinear
Morteza Qadimi
mqadimi at yahoo.com
Sat Feb 15 10:05:04 MST 2020
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200215/f7ea98e8/attachment.html>
More information about the ncl-talk
mailing list