<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.&nbsp;
<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 &quot;$NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl&quot;</div>
<div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</div>
<div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;</div>
<div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot; &nbsp;</div>
<div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl&quot;&nbsp;</div>
<div><br>
</div>
<div>begin</div>
<div>fili = &quot;2000_MPI-ESM-MR.nc&quot;</div>
<div>a = addfile (fili, &quot;r&quot;)</div>
<div>t=a-&gt;y</div>
<div>t = lonFlip(t)</div>
<div>printVarSummary(t)</div>
<div><br>
</div>
<div>newlat=fspan(-89.50,89.50,180) &nbsp; ;create a sequence for the new values of lat&nbsp;</div>
<div>newlon=fspan(-179.5,179.5,360) &nbsp; ;create a sequence for the new values of lon</div>
<div><br>
</div>
<div>newlat@units = &quot;degrees_north&quot;</div>
<div>newlon@units = &quot;degrees_east&quot;</div>
<div><br>
</div>
<div>opt &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= True</div>
<div>opt@DstGridLat &nbsp; &nbsp; = newlat</div>
<div>opt@DstGridLon &nbsp; &nbsp; = newlon</div>
<div>opt@ForceOverwrite = True</div>
<div><br>
</div>
<div>;opt@InterpMethod &nbsp;= &quot;bilinear&quot;</div>
<div>;t_regrid_bilinear = ESMF_regrid(t,opt)</div>
<div><br>
</div>
<div>;opt@InterpMethod &nbsp;= &quot;neareststod&quot;</div>
<div>;t_regrid_nearest &nbsp;= ESMF_regrid(t,opt)</div>
<div><br>
</div>
<div>opt@InterpMethod &nbsp;= &quot;conserve&quot;</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 = &quot;Regrid.&quot;&#43;fili</div>
<div>system(&quot;/bin/rm -f &quot;&#43;filo)</div>
<div>fout=addfile(filo,&quot;c&quot;)</div>
<div>fout@creation_date = systemfunc(&quot;date&quot;)</div>
<div>fout@title=&quot;Regrid_1*1 of &quot;&#43;fili</div>
<div>fout-&gt;regrid=t_regrid_conserve</div>
<div><br>
</div>
<div>end</div>
</div>
<div><br>
</div>
</div>
</body>
</html>