<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body style="word-wrap:break-word" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Times New Roman;color: #000000;font-size: 12pt;">
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma">
<div style="font-family:Tahoma">
<div style="font-family:Tahoma">
<div>
<div></div>
<div style="font-size:13px">
<div></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">Hi Karin,</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px"><br>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">That doesn't work too...&nbsp;</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px"><span style="font-size: 12pt;">Still got:</span></div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px"><span style="font-size: 12pt;"><br>
</span></div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px"><span style="font-size: 12pt;">fatal:Could not open ($NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl)</span></div>
<div>fatal:error at line 5 in file ESMF_regrid.ncl</div>
<div><br>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">Lifen</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF199297" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Karin Meier-Fleischer [meier-fleischer@dkrz.de]<br>
<b>Sent:</b> Tuesday, February 17, 2015 4:03 PM<br>
<b>To:</b> Jiang, Lifen<br>
<b>Cc:</b> Yuqiang Zhang; Mary Haley; ncl-talk [ncl-talk]<br>
<b>Subject:</b> Re: [ncl-talk] Missing values are regridded?<br>
</font><br>
</div>
<div></div>
<div>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 &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</div>
<div style="font-family:'Times New Roman'; font-size:16px">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;</div>
<div style="font-family:'Times New Roman'; font-size:16px">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot; &nbsp;</div>
<div style="font-family:'Times New Roman'; font-size:16px">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl&quot;&nbsp;</div>
</div>
<div>
<div style="font-family:'Times New Roman'; font-size:16px">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl&quot;</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" target="_blank">lfjiang@ou.edu</a>&gt;:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div lang="EN-US" 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">
<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 &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>
_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div>
</blockquote>
</div>
<div>
<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; word-wrap:break-word">
<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-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<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-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<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-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<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-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; word-wrap:break-word">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">
<div style="word-wrap:break-word"><span class="Apple-style-span" style="border-collapse:separate; font-family:Helvetica; font-variant:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px">
<div style="word-wrap:break-word"><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-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px">
<div style="word-wrap:break-word"><br>
</div>
</span></div>
</span></div>
</span></div>
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>