RE: [ncl-talk] using ESMF

From: <Arnold.Sullivan_at_nyahnyahspammersnyahnyah>
Date: Mon Jun 25 2012 - 19:39:05 MDT

Hi Mark,

It seems only Cherax has libgfortran.so.3, nci has libgfortran.so.1. I don't know if that will make any different.

On cherax:
/old_tools/gcc/4.5.2/lib/libgfortran.so.3
/old_tools/new_apps/gcc/4.6.2/lib64/libgfortran.so.3
/old_tools/new_apps/matlab/R2011b/sys/os/glnxa64/libgfortran.so.3
/old_tools/new_apps/R2011b/sys/os/glnxa64/libgfortran.so.3
/usr/lib64/libgfortran.so.3

On nci:
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/libgfortran.so
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/libgfortran.so
/usr/lib64/libgfortran.so.1

Cheers,

Arnold

-----Original Message-----
From: ncl-talk-bounces@ucar.edu [mailto:ncl-talk-bounces@ucar.edu] On Behalf Of Mary Haley
Sent: Tuesday, 26 June 2012 4:18 AM
To: Collier, Mark (CMAR, Aspendale)
Cc: ncl-talk@ucar.edu
Subject: Re: using ESMF

Hi Mark,

The issue seems to be that ESMF_RegridWeightGen has a dependency on libgfortran.so.3. I thought I built these things static, but this one must have slipped through the cracks.

Do you have libgfortran.so.3 on your system?

   locate libgfortran.so.3

If so, then the fix may be to simply setenv LD_LIBRARY_PATH

bash/sh/ksh
   export LD_LIBRARY_PATH=/path/to/libgfortran.so.3

csh/tcsh
   setenv LD_LIBRARY_PATH /path/to/libgfortran.so.3

or

bash/sh/ksh
   export LD_LIBRARY_PATH=/path/to/libgfortran.so.3:$LD_LIBRARY_PATH

csh/tcsh
   setenv LD_LIBRARY_PATH /path/to/libgfortran.so.3:$LD_LIBRARY_PATH

if LD_LIBRARY_PATH is already set.

If you don't have libgfortran.so.3, then which gcc/gfortran do you have?

   gcc --version
   gfortran --version

I might be able to provide you with an ESMF_RegridWeightGen that doesn't have a libgfortran dependency, or at least one that will match the version of gfortran that you have.

--Mary

On Jun 25, 2012, at 12:49 AM, <Mark.Collier@csiro.au> <Mark.Collier@csiro.au> wrote:

> Hi,
> I'm trying out the ESMF with some data:
>
> Opt = True
> Opt@Mask2D = where(.not.ismissing(sstc),1,0)
> Opt@GridCornerLat = fhc->lat_vertices
> Opt@GridCornerLon = fhc->lon_vertices
> Opt@PrintTimings = True
> Opt@ForceOverwrite = True
> Opt@Debug = True
> curvilinear_to_SCRIP("A1p.nc",lat_A1pg,lon_A1pg,Opt)
> delete(Opt)
>
> Opt = True
> Opt@ForceOverwrite = True
> Opt@LLCorner = (/-89.75d, 0.00d /)
> Opt@URCorner = (/ 89.75d, 359.75d /)
> Opt@Title = "World Grid 1-degree Resolution"
> Opt@PrintTimings = True
> Opt@Debug = True
> latlon_to_SCRIP("Had.nc","1x1",Opt)
> delete(Opt)
>
> Opt = True
> Opt@ForceOverwrite = True
> Opt@SrcESMF = False
> Opt@DstESMF = False
> Opt@InterpMethod = "bilinear"
> Opt@PrintTimings = True
> ESMF_regrid_gen_weights("A1p.nc", "Had.nc", "weight.nc", Opt)
> delete(Opt)
>
> but when it gets to the ESMF_regrid_gen_weights I get the error message:
>
> (0) curvilinear_to_SCRIP: using grid corners provided by user...
> (0) =====> CPU Elapsed Time: curvilinear_to_SCRIP: 0.029996 <=====
> (0) curvilinear_to_SCRIP: calculating grid corners...
> (0) calc_SCRIP_corners
> (0) min/max original lat: -89.75/89.75
> (0) min/max original lon: 0/359.75
> (0) calc_SCRIP_corners
> (0) min/max grid_corner_lat2d: -89.75/89.75
> (0) min/max grid_corner_lon2d: 0/359.75
> (0) calc_SCRIP_corners
> (0) min/max grid_corner_lat: -89.75/89.75
> (0) min/max grid_corner_lon: 0/359.75
> (0) =====> CPU Elapsed Time: latlon_to_SCRIP: 8.17876 <=====
> ESMF_RegridWeightGen: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory
> fatal:The result of the conditional expression yields a missing value. NCL can not determine branch, see ismissing function
> fatal:["Execute.c":7556]:Execute: Error occurred at or near line 1972 in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl
>
> fatal:["Execute.c":7556]:Execute: Error occurred at or near line 110 in file plot_sstbias.ncl
>
> I have normally not needed to make any additional environment variables to get NCL to work properly. Is this a bug or something wrong with my setup or code?
>
> [mac599@dcc Steve]$ ncl -V
> 6.1.0-beta
>
> [mac599@dcc Steve]$ uname -a
> Linux dcc 2.6.18-274.7.1.el5 #1 SMP Thu Oct 20 16:21:01 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
>
> The new interpolation interface looks very promising.
>
> I could not see any examples going from a rectlinear to curvlinear grid, this is the case that I am working on. It is quite typical to generate a model bias on the model grid, and therefore observations need to be interpolated to a model grid.
>
> Many thanks,
> Mark.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jun 25 22:11:16 2012

This archive was generated by hypermail 2.1.8 : Fri Jun 29 2012 - 15:46:14 MDT