<div dir="ltr"><div class="gmail_default" style="font-size:small">Xinyue,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks for including the output. Something doesn't make sense here, because the "which" command found the ESMF_RegridWeightGen executable, but the the "ls -l" command did not.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">What kind of system is this and how did you install NCL? I do see this is a Mac system, but what version of MacOS are you running?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Also, what does the following echo:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">ls -l $NCARG_ROOT</div><div class="gmail_default" style="font-size:small">ls -l $NCARG_ROOT/bin</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I'm trying to see if there's something wrong with the file permissions that would cause this inconsistent information.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 5, 2018 at 12:20 AM, Wang Xinyue <span dir="ltr"><<a href="mailto:wang.xinyue.q6@dc.tohoku.ac.jp" target="_blank">wang.xinyue.q6@dc.tohoku.ac.jp</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span style="font-size:14px">Dear Mary,</span><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">Thanks for your reply!</span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">The output is as follows:</span></div><div><span style="font-size:14px"><br></span></div><div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">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)"><span style="font-variant-ligatures:no-common-ligatures">/Users/wangxinyue/ncl-6.4.0/<wbr>bin/ncl</span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">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)"><span style="font-variant-ligatures:no-common-ligatures">6.4.0</span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">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)"><span style="font-variant-ligatures:no-common-ligatures">NCARG_ROOT=/Users/wangxinyue/<wbr>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)"><span style="font-variant-ligatures:no-common-ligatures">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)"><span style="font-variant-ligatures:no-common-ligatures">/Users/wangxinyue/ncl-6.4.0/<wbr>bin/ESMF_RegridWeightGen</span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">XWs-iMac:~ wangxinyue$ ls -l $NCARG_ROOT/bin/​ESMF_<wbr>RegridWeightGen</span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">ls: /Users/wangxinyue/ncl-6.4.0/<wbr>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)"><br></div></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:14px">Any solutions for this problem? Thanks.</span></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:14px"><br></span></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:14px">Best regards,</span></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:14px">Xinyue</span></div><div><div class="h5"><div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><br></div><div><blockquote type="cite"><div>On Mar 3, 2018, at 7:48, Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> wrote:</div><br class="m_-9067045891023686610Apple-interchange-newline"><div><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"><div class="gmail_default" style="font-size:small">Dear Xinyue,</div><div class="gmail_default" style="font-size:small"><br></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><br></div><div><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></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></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">ESMF_<wbr>RegridWeightGen doesn't have execute permissions</span></div><br><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><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><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><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><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline"><font face="monospace, monospace">which ncl</font></div></div><div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">​ncl -V</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">env | grep NCARG</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">which ESMF_RegridWeightGen</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">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">ESMF_<wbr>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"><br></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></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><br></div><div><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"><br><div class="gmail_quote">On Thu, Mar 1, 2018 at 8:56 AM, Wang Xinyue<span class="m_-9067045891023686610Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:wang.xinyue.q6@dc.tohoku.ac.jp" target="_blank">wang.xinyue.q6@dc.<wbr>tohoku.ac.jp</a>></span><span class="m_-9067045891023686610Apple-converted-space"> </span>wrote:<br><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"><span style="font-size:14px">Hi there,</span><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">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><span style="font-size:14px">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><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">When using </span><span style="font-size:14px">ESMF_regrid<i> </i>function (</span><span style="font-size:14px;background-color:rgb(255,255,255)">The script is in the attachment</span><span style="font-size:14px">), I got the error message like this:</span></div><div><span style="font-size:14px"><i><br></i></span></div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">(0)<span class="m_-9067045891023686610m_-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)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:14px">Then I checked with: ls $NCARG_ROOT/bin/ESMF_RegridWei<wbr>ghtGen, 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)"><span style="font-size:14px"><br></span></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:14px"><br></span></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:14px">When I try the example script <a href="https://www.ncl.ucar.edu/Applications/Scripts/regrid_1.ncl" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133);background-color:rgb(255,231,198)" target="_blank">regrid_1.ncl</a> with <span style="background-color:rgb(255,231,198)"> </span><strong style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133);background-color:rgb(255,231,198)"><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/linint2.shtml" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133);background-color:rgb(255,231,198)" target="_blank">lini<wbr>nt2</a></strong> function in <a href="https://www.ncl.ucar.edu/Applications/regrid.shtml" target="_blank">https://www.ncl.ucar.edu/Ap<wbr>plications/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)"><span style="font-size:14px"><br></span></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:14px">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)"><span style="font-size:14px"><br></span></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:14px">Any one met with the same problem when regridding PATMOS-x data? And how did you solve it? </span><span style="font-size:14px">Any help would be appreciated.</span></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><br></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:14px"><br></span></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:14px">Thanks,</span></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:14px">Xinyue</span></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"></div></div><br><div style="word-wrap:break-word"><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"></div></div><br><div style="word-wrap:break-word"><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:14px"> </span></div><div style="margin:0px;line-height:normal;background-color:rgb(255,255,255)"><span style="font-size:inherit;font-family:-webkit-standard"><br></span></div></div><br>______________________________<wbr>_________________<br>ncl-talk mailing list<br><a href="mailto:ncl-talk@ucar.edu" target="_blank">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">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a></blockquote></div></div></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>