<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
@font-face
        {font-family:SimSun}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif"}
span.EmailStyle17
        {font-family:"Times New Roman","serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal}
span.BalloonTextChar
        {font-family:"Tahoma","sans-serif"}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
-->
</style><style type="text/css" id="owaParaStyle"></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Times New Roman;color: #000000;font-size: 12pt;">
Hi Yuqiang,
<div><br>
</div>
<div>Thanks for the instructions, but the same problem occurred after changing the order.</div>
<div><br>
</div>
<div>Here are the code.
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<div>
<div class="WordSection1">
<div>
<div>
<div>
<div>
<div>
<div>
<div></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div><br>
</div>
<div>
<div>load "$NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl"</div>
<div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</div>
<div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</div>
<div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" </div>
<div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl" </div>
<div><br>
</div>
<div>begin</div>
<div>fili = "2000_MPI-ESM-MR.nc"</div>
<div>a = addfile (fili, "r")</div>
<div>t=a->y</div>
<div>t = lonFlip(t)</div>
<div>printVarSummary(t)</div>
<div><br>
</div>
<div>newlat=fspan(-89.50,89.50,180) ;create a sequence for the new values of lat </div>
<div>newlon=fspan(-179.5,179.5,360) ;create a sequence for the new values of lon</div>
<div><br>
</div>
<div>newlat@units = "degrees_north"</div>
<div>newlon@units = "degrees_east"</div>
<div><br>
</div>
<div>opt = True</div>
<div>opt@DstGridLat = newlat</div>
<div>opt@DstGridLon = newlon</div>
<div>opt@ForceOverwrite = True</div>
<div><br>
</div>
<div>;opt@InterpMethod = "bilinear"</div>
<div>;t_regrid_bilinear = ESMF_regrid(t,opt)</div>
<div><br>
</div>
<div>;opt@InterpMethod = "neareststod"</div>
<div>;t_regrid_nearest = ESMF_regrid(t,opt)</div>
<div><br>
</div>
<div>opt@InterpMethod = "conserve"</div>
<div>t_regrid_conserve = ESMF_regrid(t,opt)</div>
<div><br>
</div>
<div>printMinMax(t,0)</div>
<div>;printMinMax(t_regrid_bilinear,0)</div>
<div>printMinMax(t_regrid_conserve,0)</div>
<div>;printMinMax(t_regrid_nearest,0)</div>
<div><br>
</div>
<div>filo = "Regrid."+fili</div>
<div>system("/bin/rm -f "+filo)</div>
<div>fout=addfile(filo,"c")</div>
<div>fout@creation_date = systemfunc("date")</div>
<div>fout@title="Regrid_1*1 of "+fili</div>
<div>fout->regrid=t_regrid_conserve</div>
<div><br>
</div>
<div>end</div>
</div>
<div><br>
</div>
</div>
</body>
</html>