<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">I ended up using <span>Opt@InterpMethod = "neareststod" for <span>ESMF_regrid to make sure there is no negative values. </span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span>But <span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">ESMF_regrid
with <span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">"neareststod" is also slow. </span></span></span></span></p>
<p style="margin-top:0;margin-bottom:0"><span><span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">For
comparison, <span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">ESMF_regrid with </span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">"neareststod"
took more than 1 hour while <span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">ESMF_regrid with </span></span></span></span></span></span>"patch"
only took a few minutes</p>
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
Any comments? </div>
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<br>
</div>
Thanks</div>
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
Xiaoming <br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Dennis Shea <shea@ucar.edu><br>
<b>Sent:</b> Wednesday, March 29, 2017 11:25 AM<br>
<b>To:</b> xiaoming Hu<br>
<b>Cc:</b> ncl-talk@ucar.edu; xiaoming Hu<br>
<b>Subject:</b> Re: [ncl-talk] rgrid2rcm too slow?</font>
<div> </div>
</div>
<div>
<div dir="ltr">Rather than:<br>
<pre>Opt@InterpMethod = "patch"<br></pre>
<pre>Try<br><br>Opt@InterpMethod = "bilinear" ; or "conserve"<br><br>===<br></pre>
<pre>I think that "patch" was developed to attain highly accurate <br>derivatives.<br></pre>
<pre><br></pre>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Wed, Mar 29, 2017 at 10:07 AM, xiaoming Hu <span dir="ltr">
<<a href="mailto:yuanfangcan@hotmail.com" target="_blank" id="LPlnk266703" previewremoved="true">yuanfangcan@hotmail.com</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div id="x_m_-7921913156528642728divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p>Dennis</p>
<p><br>
</p>
<p>Thanks a lot! Yes, <span style="font-size:12pt">ESMF_regrid is much quicker. </span></p>
<p><span style="font-size:12pt">It mostly worked for me except negative values generated, </span></p>
<p><span style="font-size:12pt">see my original data shown at <a href="http://www.caps.ou.edu/micronet/CO2_and_otherGHG/WRFV3.8.1/YSU/wrfchem3.8.1_NARR_CONUS_nudge2_tracer16_Comet.2011080600/wrfout_d01_E_CO2_EDGAR_2.png" class="x_m_-7921913156528642728OWAAutoLink" id="LPlnk198625" target="_blank" previewremoved="true">http://www.caps.ou.edu/<wbr>micronet/CO2_and_otherGHG/<wbr>WRFV3.8.1/YSU/wrfchem3.8.1_<wbr>NARR_CONUS_nudge2_tracer16_<wbr>Comet.2011080600/wrfout_d01_E_<wbr>CO2_EDGAR_2.png</a></span></p>
<p></p>
<p></p>
<p>and the interpolated data shown </p>
<p>at <a href="http://www.caps.ou.edu/micronet/CO2_and_otherGHG/WRFV3.8.1/YSU/wrfchem3.8.1_NARR_CONUS_nudge2_tracer16_Comet.2011080600/wrfout_d01_E_CO2_0.png" class="x_m_-7921913156528642728OWAAutoLink" id="LPlnk392842" target="_blank" previewremoved="true">http://www.caps.ou.edu/<wbr>micronet/CO2_and_otherGHG/<wbr>WRFV3.8.1/YSU/wrfchem3.8.1_<wbr>NARR_CONUS_nudge2_tracer16_<wbr>Comet.2011080600/wrfout_d01_E_<wbr>CO2_0.png</a></p>
<p></p>
<p></p>
<p>You may notice in the right-lower corner the contour information shows Min=-20.745</p>
<p><br>
</p>
<p>Any suggestion to improve this? </p>
<p>My interpolation script at <a href="http://www.caps.ou.edu/micronet/CO2_and_otherGHG/WRFV3.8.1/YSU/wrfchem3.8.1_NARR_CONUS_nudge2_tracer16_Comet.2011080600/Interp_edgar42_to_wrfchemi_NEI.ncl" class="x_m_-7921913156528642728OWAAutoLink" id="LPlnk241653" target="_blank" previewremoved="true">http://www.caps.ou.edu/<wbr>micronet/CO2_and_otherGHG/<wbr>WRFV3.8.1/YSU/wrfchem3.8.1_<wbr>NARR_CONUS_nudge2_tracer16_<wbr>Comet.2011080600/Interp_<wbr>edgar42_to_wrfchemi_NEI.ncl</a></p>
<p><br>
</p>
<p>Thanks a lot!</p>
<p>Xiaoming </p>
</div>
<hr style="display:inline-block; width:98%">
<div id="x_m_-7921913156528642728divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank" id="LPlnk410530" previewremoved="true">shea@ucar.edu</a>><br>
<b>Sent:</b> Tuesday, March 28, 2017 11:39:23 AM<br>
<b>To:</b> xiaoming Hu<br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank" id="LPlnk975956" previewremoved="true">
ncl-talk@ucar.edu</a><br>
<b>Subject:</b> Re: [ncl-talk] rgrid2rcm too slow?</font>
<div> </div>
</div>
<div>
<div class="x_h5">
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>rgrid2rcm can be slow.<br>
<br>
</div>
Use ESMF: there are exam<br>
<a href="http://www.ncl.ucar.edu/Applications/ESMF.shtml" target="_blank" id="LPlnk811492" previewremoved="true">http://www.ncl.ucar.edu/<wbr>Applications/ESMF.shtml</a><br>
<br>
</div>
There are numerous examples of going from rectilinear ('rgrid') to curvilinear ('rcm')<br>
</div>
Examples 9, 15, 28-30, 32, 33,<br>
<br>
</div>
HTH<br>
<div>
<div> <br>
</div>
</div>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Tue, Mar 28, 2017 at 9:30 AM, xiaoming Hu <span dir="ltr">
<<a href="mailto:yuanfangcan@hotmail.com" target="_blank" id="LPlnk122299" previewremoved="true">yuanfangcan@hotmail.com</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="x_m_-7921913156528642728m_758473393344624224divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p>I am doing <br>
</p>
<p>"</p>
<div>dummy1 = rgrid2rcm (elat, elon, emi_co2, lat2d, lon2d, 0)<br>
</div>
"
<p></p>
<p>where lat2d and lon2d have a dimension of 442x265</p>
<p><br>
</p>
<p>The script appears to take forever. <br>
</p>
<p><br>
</p>
<p>Any other ways to do a faster interpolation? <br>
</p>
<p><br>
</p>
<p>Thanks a lot!</p>
<span class="x_m_-7921913156528642728HOEnZb"><font color="#888888">
<p>Xiaoming <br>
</p>
</font></span></div>
</div>
<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank" id="LPlnk770861" previewremoved="true">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" id="LPlnk478010" previewremoved="true">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>