<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Lifen,<div><br></div><div>you should try to rearrange the following lines like</div><div><br></div><div><div style="font-family: 'Times New Roman'; font-size: 16px;">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</div><div style="font-family: 'Times New Roman'; font-size: 16px;">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</div><div style="font-family: 'Times New Roman'; font-size: 16px;">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" &nbsp;</div><div style="font-family: 'Times New Roman'; font-size: 16px;">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"&nbsp;</div></div><div><div style="font-family: 'Times New Roman'; font-size: 16px;">load "$NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl"</div></div><div><br></div><div>Bye,</div><div>Karin</div><div><br><div><div>Am 17.02.2015 um 22:59 schrieb Jiang, Lifen &lt;<a href="mailto:lfjiang@ou.edu">lfjiang@ou.edu</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" fpstyle="1" ocsi="0" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="direction: ltr; font-family: 'Times New Roman'; 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'; font-size: 16px;"><div class="WordSection1"><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" &nbsp;</div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"&nbsp;</div><div><br></div><div>begin</div><div>fili = "2000_MPI-ESM-MR.nc"</div><div>a = addfile (fili, "r")</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 = "degrees_north"</div><div>newlon@units = "degrees_east"</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;= "bilinear"</div><div>;t_regrid_bilinear = ESMF_regrid(t,opt)</div><div><br></div><div>;opt@InterpMethod &nbsp;= "neareststod"</div><div>;t_regrid_nearest &nbsp;= ESMF_regrid(t,opt)</div><div><br></div><div>opt@InterpMethod &nbsp;= "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-&gt;regrid=t_regrid_conserve</div><div><br></div><div>end</div></div><div><br></div></div>_______________________________________________<br>ncl-talk mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" style="color: purple; text-decoration: underline;">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div></blockquote></div><div apple-content-edited="true"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br></div></span></div></span></div></span></div></div></div></div></div><br class="Apple-interchange-newline">
</div>
<br></div></body></html>