<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span style="font-size: 14px;" class="">Dear Mary,</span><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="font-size: 14px;" class="">Thanks for your reply!</span></div><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="font-size: 14px;" class="">The output is as follows:</span></div><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">XWs-iMac:~ wangxinyue$ which ncl</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Users/wangxinyue/ncl-6.4.0/bin/ncl</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">XWs-iMac:~ wangxinyue$ ncl -V</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">6.4.0</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">XWs-iMac:~ wangxinyue$ env | grep NCARG</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">NCARG_ROOT=/Users/wangxinyue/ncl-6.4.0</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">XWs-iMac:~ wangxinyue$ which ESMF_RegridWeightGen</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/Users/wangxinyue/ncl-6.4.0/bin/ESMF_RegridWeightGen</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">XWs-iMac:~ wangxinyue$ ls -l $NCARG_ROOT/bin/​ESMF_RegridWeightGen</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ls: /Users/wangxinyue/ncl-6.4.0/bin/​ESMF_RegridWeightGen: No such file or directory</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><br class=""></div></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class="">Any solutions for this problem? Thanks.</span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class="">Best regards,</span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class="">Xinyue</span></div><div class=""><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Mar 3, 2018, at 7:48, Mary Haley <<a href="mailto:haley@ucar.edu" class="">haley@ucar.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_default" style="font-size: small;">Dear Xinyue,</div><div class="gmail_default" style="font-size: small;"><br class=""></div>The "ESMF_regrid_gen_weights: could not find ESMF_RegridWeightGen executable."<div class="gmail_default" style="font-size: small; display: inline;">​ error indicates that for some reason, it is not seeing the "ESMF_RegridWeightGen" executable in $NCARG_ROOT/bin.</div><div class=""><br class=""></div><div class=""><div class="gmail_default" style="font-size: small;">​There could be a few reasons for this; here are two:</div><div class="gmail_default" style="font-size: small;"><br class=""></div><div class="gmail_default" style="font-size: small;">1. $NCARG_ROOT/bin is not part of your PATH environment variable</div><div class="gmail_default" style="font-size: small;"><br class=""></div><div class="gmail_default" style="font-size: small;">2. $NCARG_ROOT/bin/​<span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); float: none; display: inline;" class="">ESMF_RegridWeightGen doesn't have execute permissions</span></div><br class=""><div class=""><div class="gmail_default" style="font-size: small; display: inline;"><br class=""></div></div><div class=""><div class="gmail_default" style="font-size: small; display: inline;">You mentioned that the regridding script worked with other data files. When you ran the script that doesn't work, are you by any chance running it on a different system or under a different environment somehow? </div></div><div class=""><div class="gmail_default" style="font-size: small; display: inline;"><br class=""></div></div><div class=""><div class="gmail_default" style="font-size: small; display: inline;">Before you run the "bad" script, can you type the following to see if it gives you any insight to the problem:</div></div><div class=""><div class="gmail_default" style="font-size: small; display: inline;"><br class=""></div></div><div class=""><div class="gmail_default" style="font-size: small; display: inline;"><font face="monospace, monospace" class="">which ncl</font></div></div><div class=""><div class="gmail_default" style="font-size: small;"><font face="monospace, monospace" class="">​ncl -V</font></div><div class="gmail_default" style="font-size: small;"><font face="monospace, monospace" class="">env | grep NCARG</font></div><div class="gmail_default" style="font-size: small;"><font face="monospace, monospace" class="">which ESMF_RegridWeightGen</font></div><div class="gmail_default" style="font-size: small;"><font face="monospace, monospace" class="">ls -l $NCARG_ROOT/bin/​<span style="color: rgb(34, 34, 34); font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); float: none; display: inline;" class="">ESMF_RegridWeightGen</span></font></div><div class="gmail_default" style="font-size: small;"><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); float: none; display: inline;" class=""><br class=""></span></div><div class="gmail_default" style="font-size: small;">You can email the input from the above command back to ncl-talk and I'll have a look.</div><div class="gmail_default" style="font-size: small;"><br class=""></div><div class="gmail_default" style="font-size: small;">Thanks,</div><div class="gmail_default" style="font-size: small;"><br class=""></div><div class="gmail_default" style="font-size: small;">--Mary</div><br class=""></div><div class=""><div class="gmail_default" style="font-size: small; display: inline;">​</div></div></div></div><div class="gmail_extra" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""><div class="gmail_quote">On Thu, Mar 1, 2018 at 8:56 AM, Wang Xinyue<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:wang.xinyue.q6@dc.tohoku.ac.jp" target="_blank" class="">wang.xinyue.q6@dc.tohoku.ac.jp</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;" class=""><span style="font-size: 14px;" class="">Hi there,</span><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="font-size: 14px;" class="">I would like to regrid the original PATMOS-x data (1800,3600), which has 0.1*0.1 resolution, to lower resolution 1*1. </span></div><div class=""><span style="font-size: 14px;" class="">However, after trying several example scripts in Regridding and ESMF Regridding, I still cannot get the result I want, although these command lines seem to work well on other climate datasets like CERES (180,360).</span></div><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="font-size: 14px;" class="">When using </span><span style="font-size: 14px;" class="">ESMF_regrid<i class=""> </i>function (</span><span style="font-size: 14px; background-color: rgb(255, 255, 255);" class="">The script is in the attachment</span><span style="font-size: 14px;" class="">), I got the error message like this:</span></div><div class=""><span style="font-size: 14px;" class=""><i class=""><br class=""></i></span></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">(0)<span class="m_-6328447379174476276Apple-tab-span" style="white-space: pre-wrap;">      </span>ESMF_regrid_gen_weights: could not find ESMF_RegridWeightGen executable.</span></div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class="">Then I checked with: ls $NCARG_ROOT/bin/ESMF_<wbr class="">RegridWeightGen, and found it correctly installed. So what could be causing that error?</span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class="">When I try the example script <a href="https://www.ncl.ucar.edu/Applications/Scripts/regrid_1.ncl" target="_blank" style="margin: 0px; padding: 0px; text-decoration: none; color: rgb(133, 45, 133); background-color: rgb(255, 231, 198);" class="">regrid_1.ncl</a> with <span style="background-color: rgb(255, 231, 198);" class=""> </span><strong style="margin: 0px; padding: 0px; text-decoration: none; color: rgb(133, 45, 133); background-color: rgb(255, 231, 198);" class=""><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/linint2.shtml" target="_blank" style="margin: 0px; padding: 0px; text-decoration: none; color: rgb(133, 45, 133); background-color: rgb(255, 231, 198);" class="">lini<wbr class="">nt2</a></strong> function in <a href="https://www.ncl.ucar.edu/Applications/regrid.shtml" target="_blank" class="">https://www.ncl.ucar.edu/<wbr class="">Applications/regrid.shtml</a>, there is no error message, but the output data is weird and cannot be plotted.</span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class="">The version of NCL is 6.4.0, running in Mac OS.</span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class="">Any one met with the same problem when regridding PATMOS-x data? And how did you solve it? </span><span style="font-size: 14px;" class="">Any help would be appreciated.</span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class="">Thanks,</span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class="">Xinyue</span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""></div></div><br class=""><div style="word-wrap: break-word;" class=""><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""></div></div><br class=""><div style="word-wrap: break-word;" class=""><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: 14px;" class=""> </span></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><span style="font-size: inherit; font-family: -webkit-standard;" class=""><br class=""></span></div></div><br class="">______________________________<wbr class="">_________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/<wbr class="">mailman/listinfo/ncl-talk</a></blockquote></div></div></div></blockquote></div><br class=""></div></body></html>