<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.MsoSubtleEmphasis
{mso-style-priority:19;
color:#404040;
font-style:italic;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Dear NCL wizards,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I want to regrid BNU-ESM (which is tripolar curvilinear) to rectilinear using ESMF_regrid. You can find my code below:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>tas = in->tas<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>lat2d = in->lat<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>lon2d = in->lon<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>sst@lat2d = lat2d<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>sst@lon2d = lon2d<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>lat = fspan(-90,90,181)<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>lon = fspan(0.5,359.5,360)<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><o:p> </o:p></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>Opt = True<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><o:p> </o:p></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>Opt@SrcGridType = "curvilinear"<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>Opt@SrcFileName = "ORCA_SCRIP.nc"<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>Opt@DstFileName = "World1deg_SCRIP.nc"<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>Opt@WgtFileName = "ORCA_2_World_SCRIP.nc"<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>Opt@ForceOverwrite = True<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>Opt@DstGridType = "1deg"<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>Opt@DstTitle = "World grid 1x1 degree resolution"<o:p></o:p></span></span></span></p><div><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>Opt@InterpMethod = “bilinear”<o:p></o:p></span></span></span></p></div><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><o:p> </o:p></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><o:p> </o:p></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>tas_regrid = ESMF_regrid(sst,Opt) <o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>printVarSummary(tos_regrid)<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><o:p> </o:p></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>but I get an annoying error saying that:<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><o:p> </o:p></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>fatal:Number of dimensions in parameter (1) of (curvilinear_to_SCRIP) is (1), (2) dimensions were expected<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>fatal:["Execute.c":8637]:Execute: Error occurred at or near line 3882 in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><o:p> </o:p></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:#7F7F7F;mso-style-textfill-fill-color:#7F7F7F;mso-style-textfill-fill-alpha:100.0%'><span style='color:windowtext'>fatal:["Execute.c":8637]:Execute: Error occurred at or near line 4010 in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl<o:p></o:p></span></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:black;font-style:normal'><o:p> </o:p></span></span></p><p class=MsoNormal><span class=MsoSubtleEmphasis><span style='color:black;font-style:normal'>Any solution?<o:p></o:p></span></span></p></div></body></html>