<div dir="ltr"><div class="gmail_default" style="font-size:small">Felix,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">FYI: you don't need to set all of these:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default" 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);text-decoration-style:initial;text-decoration-color:initial">NCARG_FONTCAPS=/home/felix.carrasco/NCL/lib/ncarg/fontcaps</div><div class="gmail_default" 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);text-decoration-style:initial;text-decoration-color:initial">NCARG_GRAPHCAPS=/home/felix.carrasco/NCL/lib/ncarg/graphcaps</div><div class="gmail_default" 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);text-decoration-style:initial;text-decoration-color:initial">NCARG_DATABASE=/home/felix.carrasco/NCL/lib/ncarg/database<br></div><div class="gmail_default" 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);text-decoration-style:initial;text-decoration-color:initial">NCARG_LIB=/home/felix.carrasco/NCL/lib/ncarg</div><div class="gmail_default" 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);text-decoration-style:initial;text-decoration-color:initial">NCARG_NCARG=/home/felix.carrasco/NCL/lib/ncarg</div><br></div><div class="gmail_default" style="font-size:small">because they will be found automatically simply by the fact you set:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default" 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;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255)">NCARG_ROOT=/home/felix.carrasco/NCL</div></div><div><br></div><div class="gmail_default" style="font-size:small">There are two possible reasons why the ESMF_RegridWeightGen is trying to get picked up from the anaconda directory. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">One is that <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">/opt/anaconda2/bin may be on your search path before /home/felix.carrasco/NCL/bin.</span></div><div class="gmail_default" style="font-size:small"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div class="gmail_default" style="font-size:small"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">The other is that you may have the environment variable ESMFBINDIR set to <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;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);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">/opt/anaconda2.</span></span></div><div class="gmail_default" style=""><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style=""><span style="font-size:12.8px">To check your PATH, type:</span></div><div class="gmail_default" style=""><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style=""><span style="font-size:12.8px">echo $PATH</span></div><div class="gmail_default" style=""><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style=""><span style="font-size:12.8px">If the /opt/anaconda2 path is first, then fix this in your appropriate /home/felix.carrasco/.XXXX file where PATH is being set. You will need to log out and log back in for this to take effect.</span></div><div class="gmail_default" style=""><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style=""><span style="font-size:12.8px">If ESMFBINDIR is set to the anaconda2 path, then again, you will need to fix this in your appropriate .XXXX file. </span></div><div class="gmail_default" style=""><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style=""><span style="font-size:12.8px">I recommend not setting it at all, as long as $NCARG_ROOT/bin is on your search PATH before /opt/anaconda2/bin. Or, you can try setting it to <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);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">/home/felix.carrasco/NCL/bin, but I don't like this solution because if you install NCL to a different location, you will need to remember to change this setting.</span></span></div><div class="gmail_default" style=""><span style="font-size:12.8px"><br></span></div><div class="gmail_default" style=""><span style="font-size:12.8px">--Mary</span></div><div class="gmail_default" style=""><span style="font-size:12.8px"><br></span></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 5, 2018 at 11:29 AM, Felix Carrasco <span dir="ltr"><<a href="mailto:felix.carrasco@cima.fcen.uba.ar" target="_blank">felix.carrasco@cima.fcen.uba.ar</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the reply Mary,<br>
<br>
Here are the output from the commands you suggest:<br>
<br>
<br>
[felix.carrasco@tupa ncl_scripts]$ which ncl<br>
~/NCL/bin/ncl<br>
[felix.carrasco@tupa ncl_scripts]$ ncl -V<br>
6.4.0<br>
[felix.carrasco@tupa ncl_scripts]$ env | grep NCARG<br>
NCARG_FONTCAPS=/home/felix.car<wbr>rasco/NCL/lib/ncarg/fontcaps<br>
NCARG_GRAPHCAPS=/home/<a href="http://felix.ca">felix.ca</a><wbr>rrasco/NCL/lib/ncarg/graphcaps<br>
NCARG_ROOT=/home/felix.carrasc<wbr>o/NCL<br>
NCARG_DATABASE=/home/felix.car<wbr>rasco/NCL/lib/ncarg/database<br>
NCARG_LIB=/home/felix.carrasco<wbr>/NCL/lib/ncarg<br>
NCARG_NCARG=/home/felix.carras<wbr>co/NCL/lib/ncarg<br>
[felix.carrasco@tupa ncl_scripts]$ which ESMF_RegridWeightGen<br>
/opt/anaconda2/bin/ESMF_Regrid<wbr>WeightGen<br>
<br>
As it can be noticed, it's trying to use the bin from the Anaconda installation and not the one from the NCARG installation.<br>
<br>
I try to run the script using:<br>
<br>
/home/felix.carrasco/NCL/bin/n<wbr>cl interpolate_coemis_hourly.ncl<br>
<br>
but it gave the same mistake.<br>
<br>
Any suggestion on how to force to ncl to use the appropiate bin?<br>
<br>
Thanks in advance.<br>
---<span class=""><br>
------------------------------<wbr>-------<br>
Felix Carrasco<br>
<br>
Estudiante Doctorado UBA<br>
Centro de investigaciones del mar y la atmosfera<br>
Universidad de Buenos Aires<br>
Dirección:<br>
<a href="https://maps.google.com/?q=Intendente+Guiraldes+2160&entry=gmail&source=g">Intendente Guiraldes 2160</a> - Ciudad Universitaria<br>
Pabellón II - 2do. piso<br>
Buenos Aires - Argentina<br>
Código Postal: C1428EGA<br>
Teléfono: (54)(11) 4787-2693 - (54)(11) 4576-3300/09 Ext. 388<br>
FAX: (54)(11) 4788-3572<br>
<br></span><div><div class="h5">
On 05.04.2018 14:01, Mary Haley wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi Felix,<br>
<br>
If it can't find the ESMF_RegridWeightGen executable, then this would<br>
usually mean that $NCARG_ROOT/bin is not on your search path.<br>
However, as you pointed out, the NCL binary that you downloaded has<br>
this executable included with it, so something else is going on with<br>
your environment.<br>
<br>
My guess is that you may be using a different version of NCL than what<br>
you think, or else $NCARG_ROOT/bin is NOT on your search path, and you<br>
are executing NCL by explicitly giving it the full path to the NCL<br>
executable, i.e.:<br>
<br>
/xxxx/yyyy/bin/ncl my_script.ncl<br>
<br>
I need to know how your environment is set up and how you are<br>
executing NCL. On the UNIX command, before you run your script, can<br>
you type the following four commands and send the output to ncl-talk:<br>
<br>
which ncl<br>
ncl -V<br>
env | grep NCARG<br>
which ESMF_RegridWeightGen<br>
<br>
Then, also tell<br>
us how you are running "ncl". That is, are you typing:<br>
<br>
ncl my_script.ncl<br>
<br>
or<br>
<br>
/xxxxx/yyyy/bin/my_script.ncl<br>
<br>
where /xxxx/yyyy is the path that NCARG_ROOT is set to?<br>
<br>
--Mary<br>
<br>
On Wed, Apr 4, 2018 at 2:53 PM, Felix Carrasco<br>
<<a href="mailto:felix.carrasco@cima.fcen.uba.ar" target="_blank">felix.carrasco@cima.fcen.uba.<wbr>ar</a>> wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi NCL-Talk,<br>
<br>
i was trying to interpolate using the ESMF_regrid_gen_weights<br>
function. But it send me this message:<br>
<br>
(0) get_src_grid_info: source lat dims = (85,85)<br>
(0) get_src_grid_info: source lon dims = (85,85)<br>
(0) get_src_grid_info: source grid type is 'curvilinear'<br>
(0) curvilinear_to_SCRIP: calculating grid corners...<br>
(0) curvilinear_to_SCRIP: no lat values are at the poles, so<br>
(0) calculating grid corners using<br>
(0) calc_SCRIP_corners_noboundarie<wbr>s...<br>
(0) calc_SCRIP_corners_noboundari<wbr>es<br>
(0) min/max original lat: -35.0214/-34.2646<br>
(0) min/max original lon: -58.8845/-57.9605<br>
(0) calc_SCRIP_corners_noboundari<wbr>es<br>
(0) min/max Extlat2d: -35.0304/-34.2556<br>
(0) min/max Extlon2d: -58.8956/-57.9494<br>
(0) calc_SCRIP_corners_noboundari<wbr>es<br>
(0) min/max ExtGridCenter_lat: -35.0259/-34.2601<br>
(0) min/max ExtGridCenter_lon: -58.8901/-57.9549<br>
(0) =====> CPU Elapsed Time: curvilinear_to_SCRIP: 0.0159969<br>
seconds <=====<br>
(0) get_dst_grid_info: destination lat dims = (100,110)<br>
(0) get_dst_grid_info: destination lon dims = (100,110)<br>
(0) curvilinear_to_SCRIP: calculating grid corners...<br>
(0) curvilinear_to_SCRIP: no lat values are at the poles, so<br>
(0) calculating grid corners using<br>
(0) calc_SCRIP_corners_noboundarie<wbr>s...<br>
(0) calc_SCRIP_corners_noboundari<wbr>es<br>
(0) min/max original lat: -36.8259/-32.3388<br>
(0) min/max original lon: -61.4592/-55.3408<br>
(0) calc_SCRIP_corners_noboundari<wbr>es<br>
(0) min/max Extlat2d: -36.8709/-32.2926<br>
(0) min/max Extlon2d: -61.517/-55.283<br>
(0) calc_SCRIP_corners_noboundari<wbr>es<br>
(0) min/max ExtGridCenter_lat: -36.8484/-32.3157<br>
(0) min/max ExtGridCenter_lon: -61.4881/-55.3119<br>
(0) =====> CPU Elapsed Time: curvilinear_to_SCRIP: 0.020998<br>
seconds <=====<br>
(0) ESMF_regrid_gen_weights: could not find ESMF_RegridWeightGen<br>
executable.<br>
<br>
and it's not working, because I iterate over a series files using<br>
this weights generated by this function.<br>
<br>
I found an old email from 2013 here:<br>
<br>
</div></div><a href="https://www.ncl.ucar.edu/Support/talk_archives/2013/3957.html" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Suppo<wbr>rt/talk_archives/2013/3957.<wbr>html</a> [1]<span class=""><br>
<br>
but as it suggested right there I do find the ESMF_RegridWeightGen<br>
in the $NCARG_ROOT/bin/ folder (also check the setting of NCARG_ROOT<br>
and is fine. So I decided to send this email in case anyone knows<br>
something about this.<br>
<br>
I have installed the NCL in a server using the file:<br>
<br>
ncl_ncarg-6.4.0-RHEL6.4_64bit_<wbr>gnu447.tar.gz<br>
<br>
The system is (according to uname -or):<br>
<br>
2.6.32-642.11.1.el6.x86_64 GNU/Linux<br>
<br>
and "gcc -v" gives me:<br>
<br>
Using built-in specs.<br>
Target: x86_64-redhat-linux<br>
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man<br>
--infodir=/usr/share/info<br></span>
--with-bugurl=<a href="http://bugzilla.redhat.com/bugzilla" rel="noreferrer" target="_blank">http://bugzilla.<wbr>redhat.com/bugzilla</a> [2]<span class=""><br>
--enable-bootstrap --enable-shared --enable-threads=posix<br>
--enable-checking=release --with-system-zlib --enable-__cxa_atexit<br>
--disable-libunwind-exceptions --enable-gnu-unique-object<br>
--enable-languages=c,c++,objc,<wbr>obj-c++,java,fortran,ada<br>
--enable-java-awt=gtk --disable-dssi<br>
--with-java-home=/usr/lib/jvm/<wbr>java-1.5.0-gcj-1.5.0.0/jre<br>
--enable-libgcj-multifile --enable-java-maintainer-mode<br>
--with-ecj-jar=/usr/share/java<wbr>/eclipse-ecj.jar<br>
--disable-libjava-multilib --with-ppl --with-cloog<br>
--with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux<br>
Thread model: posix<br>
gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)<br>
<br>
If anyother information is needed, just ask.<br>
<br>
Best regards<br>
<br>
--<br>
------------------------------<wbr>-------<br>
Felix Carrasco<br>
<br>
Estudiante Doctorado UBA<br>
Centro de investigaciones del mar y la atmosfera<br>
Universidad de Buenos Aires<br>
Dirección:<br></span>
Intendente Guiraldes 2160 [3] - Ciudad Universitaria<span class=""><br>
Pabellón II - 2do. piso<br>
Buenos Aires - Argentina<br>
Código Postal: C1428EGA<br>
Teléfono: (54)(11) 4787-2693 - (54)(11) 4576-3300/09 Ext. 388<br>
FAX: (54)(11) 4788-3572<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>
</span><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> [4]<br>
</blockquote>
<br>
<br>
<br>
Links:<br>
------<br>
[1] <a href="https://www.ncl.ucar.edu/Support/talk_archives/2013/3957.html" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Suppo<wbr>rt/talk_archives/2013/3957.<wbr>html</a><br>
[2] <a href="http://bugzilla.redhat.com/bugzilla" rel="noreferrer" target="_blank">http://bugzilla.redhat.com/bug<wbr>zilla</a><br>
[3]<br>
<a href="https://maps.google.com/?q=Intendente+Guiraldes+2160&entry=gmail&source=g" rel="noreferrer" target="_blank">https://maps.google.com/?q=Int<wbr>endente+Guiraldes+2160&ent<wbr>ry=gmail&source=g</a><br>
[4] <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><br>
</blockquote><div class="HOEnZb"><div class="h5">
______________________________<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><br>
</div></div></blockquote></div><br></div>