<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Thank you Laura.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have loaded <span style="font-size:12.0pt">ESMF_regridding.ncl in my ncl script, this means the ncl function ESMF_regrid_with_weights is there, and this function will call ESMF_RegridWeightGen.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The problem is when it’s trying to call <span style="font-size:12.0pt">
ESMF_RegridWeightGen, it couldn’t find the executable, but I can see the executable is in the same path as ncl.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal">I am attaching my ncl script and the data I am using. Can you please take a look and advise?<span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks again!<o:p></o:p></p>
<p class="MsoNormal">Jiali <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">"laura@ucar.edu" <laura@ucar.edu><br>
<b>Date: </b>Thursday, March 18, 2021 at 10:18 AM<br>
<b>To: </b>Jiali Wang <jialiwang@anl.gov><br>
<b>Cc: </b>"ncl-talk@mailman.ucar.edu" <ncl-talk@mailman.ucar.edu>, ncl-talk <ncl-talk-bounces@mailman.ucar.edu>, "ncl-talk@ucar.edu" <ncl-talk@ucar.edu>, "laura@ucar.edu" <laura@ucar.edu><br>
<b>Subject: </b>Re: [ncl-talk] could not find ESMF_RegridWeightGen executable<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Hi Jiali:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">The function ESMF_RegridWeightGen executable is part of the ESMF library and is not a ncl function: that is the reason why you did not find it in the ncl source code itself. It is the ncl function ESMF_regrid_with_weights
 that calls the ESMF_RegridWeightGen (that ncl function is in the large ncl script ESMF_regridding.ncl.) So your ncl script should call ESMF_regrid_with_weights, not ESMF_RegridWeightGen.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Hope this helps,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Laura<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Thu, Mar 18, 2021 at 6:17 AM Wang, Jiali via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I have been trying on different suercomputers, and all of them look fine (ncl and the excutable are at the same place), but it still says can’t find ESMF_RegridWeightGen executable.
 I am doing exactly the same thing as this. <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="https://www.ncl.ucar.edu/Applications/Scripts/ESMF_regrid_36.ncl" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/ESMF_regrid_36.ncl</a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Can anyone advise please?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thanks<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Jiali
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="color:black">From:
</span></b><span style="color:black">Jiali Wang <<a href="mailto:jialiwang@anl.gov" target="_blank">jialiwang@anl.gov</a>><br>
<b>Date: </b>Wednesday, March 17, 2021 at 11:39 AM<br>
<b>To: </b>"<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>" <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>>, ncl-talk <<a href="mailto:ncl-talk-bounces@mailman.ucar.edu" target="_blank">ncl-talk-bounces@mailman.ucar.edu</a>>,
 "<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
<b>Subject: </b>could not find ESMF_RegridWeightGen executable</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<p>Hi NCL users!<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>I am having a problem running a regrid script. <o:p></o:p></p>
<p>It says “could not find ESMF_RegridWeightGen executable” after generating the source_grid_file and destination_grid_file and before generating the weights.
<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>Here is what I got (by following up this link <a href="https://mailman.ucar.edu/pipermail/ncl-talk/2018-April/011949.html" target="_blank">
https://mailman.ucar.edu/pipermail/ncl-talk/2018-April/011949.html</a>), it seems everything is at the same place but it just can’t find it.<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>(ncl_stable) [jialiwang@beboplogin4 regrid_test]$ which ncl<o:p></o:p></p>
<p>/soft/anaconda3/5.2.0/envs/ncl_stable/bin/ncl<o:p></o:p></p>
<p>(ncl_stable) [jialiwang@beboplogin4 regrid_test]$ ncl -V<o:p></o:p></p>
<p>6.6.2<o:p></o:p></p>
<p>(ncl_stable) [jialiwang@beboplogin4 regrid_test]$ env | grep NCARG<o:p></o:p></p>
<p><b>NCARG</b>_ROOT=/soft/anaconda3/5.2.0/envs/ncl_stable<o:p></o:p></p>
<p>(ncl_stable) [jialiwang@beboplogin4 regrid_test]$ which ESMF_RegridWeightGen<o:p></o:p></p>
<p>/soft/anaconda3/5.2.0/envs/ncl_stable/bin/ESMF_RegridWeightGen<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Any suggestions would be appreciated!<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Jiali
<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:blue;background:white">!-------------------------------------------------------------------------------------------------------------</span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:blue;background:white">Laura D. Fowler                                                                                       </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:blue;background:white">Mesoscale and Microscale Meteorology Division (MMM)         </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:blue;background:white">National Center for Atmospheric Research</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:blue;background:white">P.O. Box 3000, Boulder CO 80307-3000</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:blue;background:white">e-mail:
<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:blue;background:white">phone: 303-497-1628</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:blue;background:white">!-------------------------------------------------------------------------------------------------------------</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>