[ncl-talk] Problem with ESMF_RegridWeightGen

Mary Haley haley at ucar.edu
Thu Apr 5 11:01:15 MDT 2018


Hi Felix,

If it can't find the ESMF_RegridWeightGen executable, then this would
usually mean that $NCARG_ROOT/bin is not on your search path.  However, as
you pointed out, the NCL binary that you downloaded has this executable
included with it, so something else is going on with your environment.

My guess is that you may be using a different version of NCL than what you
think, or else $NCARG_ROOT/bin is NOT on your search path, and you are
executing NCL by explicitly giving it the full path to the NCL executable,
i.e.:

/xxxx/yyyy/bin/ncl my_script.ncl

I need to know how your environment is set up and how you are executing
NCL. On the UNIX command, before you run your script, can you type the
following four commands and send the output to ncl-talk:

which ncl
ncl -V
env | grep NCARG
which ESMF_RegridWeightGen

Then, also tell
​us
 how you are running "ncl". That is, are you typing:

ncl my_script.ncl

or

/xxxxx/yyyy/bin/my_script.ncl

where /xxxx/yyyy is the path that NCARG_ROOT is set to?

--Mary



On Wed, Apr 4, 2018 at 2:53 PM, Felix Carrasco <
felix.carrasco at cima.fcen.uba.ar> wrote:

> Hi NCL-Talk,
>
> i was trying to interpolate using the ESMF_regrid_gen_weights function.
> But it send me this message:
>
>
> (0)     get_src_grid_info: source lat dims = (85,85)
> (0)     get_src_grid_info: source lon dims = (85,85)
> (0)     get_src_grid_info: source grid type is 'curvilinear'
> (0)     curvilinear_to_SCRIP: calculating grid corners...
> (0)     curvilinear_to_SCRIP: no lat values are at the poles, so
> (0)            calculating grid corners using
> (0)            calc_SCRIP_corners_noboundaries...
> (0)     calc_SCRIP_corners_noboundaries
> (0)          min/max original lat: -35.0214/-34.2646
> (0)          min/max original lon: -58.8845/-57.9605
> (0)     calc_SCRIP_corners_noboundaries
> (0)          min/max Extlat2d: -35.0304/-34.2556
> (0)          min/max Extlon2d: -58.8956/-57.9494
> (0)     calc_SCRIP_corners_noboundaries
> (0)          min/max ExtGridCenter_lat: -35.0259/-34.2601
> (0)          min/max ExtGridCenter_lon: -58.8901/-57.9549
> (0)     =====> CPU Elapsed Time: curvilinear_to_SCRIP: 0.0159969 seconds
> <=====
> (0)     get_dst_grid_info: destination lat dims = (100,110)
> (0)     get_dst_grid_info: destination lon dims = (100,110)
> (0)     curvilinear_to_SCRIP: calculating grid corners...
> (0)     curvilinear_to_SCRIP: no lat values are at the poles, so
> (0)            calculating grid corners using
> (0)            calc_SCRIP_corners_noboundaries...
> (0)     calc_SCRIP_corners_noboundaries
> (0)          min/max original lat: -36.8259/-32.3388
> (0)          min/max original lon: -61.4592/-55.3408
> (0)     calc_SCRIP_corners_noboundaries
> (0)          min/max Extlat2d: -36.8709/-32.2926
> (0)          min/max Extlon2d: -61.517/-55.283
> (0)     calc_SCRIP_corners_noboundaries
> (0)          min/max ExtGridCenter_lat: -36.8484/-32.3157
> (0)          min/max ExtGridCenter_lon: -61.4881/-55.3119
> (0)     =====> CPU Elapsed Time: curvilinear_to_SCRIP: 0.020998 seconds
> <=====
> (0)     ESMF_regrid_gen_weights: could not find ESMF_RegridWeightGen
> executable.
>
> and it's not working, because I iterate over a series files using this
> weights generated by this function.
>
> I found an old email from 2013 here:
>
> https://www.ncl.ucar.edu/Support/talk_archives/2013/3957.html
>
> but as it suggested right there I do find the ESMF_RegridWeightGen in the
> $NCARG_ROOT/bin/ folder (also check the setting of NCARG_ROOT and is fine.
> So I decided to send this email in case anyone knows something about this.
>
> I have installed the NCL in a server using the file:
>
> ncl_ncarg-6.4.0-RHEL6.4_64bit_gnu447.tar.gz
>
> The system is (according to uname -or):
>
> 2.6.32-642.11.1.el6.x86_64 GNU/Linux
>
> and "gcc -v" gives me:
>
> Using built-in specs.
> Target: x86_64-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --with-bugurl=http://bugzilla.
> redhat.com/bugzilla --enable-bootstrap --enable-shared
> --enable-threads=posix --enable-checking=release --with-system-zlib
> --enable-__cxa_atexit --disable-libunwind-exceptions
> --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada
> --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
> --enable-libgcj-multifile --enable-java-maintainer-mode
> --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
> --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
> --build=x86_64-redhat-linux
> Thread model: posix
> gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)
>
> If anyother information is needed, just ask.
>
> Best regards
>
>
>
>
> --
> -------------------------------------
> Felix Carrasco
>
> Estudiante Doctorado UBA
> Centro de investigaciones del mar y la atmosfera
> Universidad de Buenos Aires
> Dirección:
> Intendente Guiraldes 2160
> <https://maps.google.com/?q=Intendente+Guiraldes+2160&entry=gmail&source=g>
> - Ciudad Universitaria
> Pabellón II - 2do. piso
> Buenos Aires - Argentina
> Código Postal: C1428EGA
> Teléfono: (54)(11) 4787-2693 - (54)(11) 4576-3300/09 Ext. 388
> FAX: (54)(11) 4788-3572
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180405/f9df60a3/attachment.html>


More information about the ncl-talk mailing list