Re:Re: [ncl-talk] Help: errors in running the example "ESMF_regrid_1.ncl"

From: heaven_bird334 <heaven_bird334_at_nyahnyahspammersnyahnyah>
Date: Sat Jul 13 2013 - 09:35:32 MDT

Dear Mary,

        It¡®s great. All the proplems are solved when following your directions:

        1) I installed the gcc47 through Macports.
        2) I set the variable "DYLD_FALLBACK_LIBRARY_PATH" in my "~/.tcshrc" like this:
               setenv DYLD_FALLBACK_LIBRARY_PATH "/opt/local/lib/gcc47"
               (The directory "/opt/local/lib/gcc47" contains the lib file "libgomp.1.dylib" )

        Now everything is ok for me. Thanks a lot !

;---------------------------------------------------------------

; And the following is the output information:
;---------------------------------------------------------------

User@MacBook-5:/ESMF_regrid[283] ncl ESMF_regrid_1.ncl
 Copyright (C) 1995-2013 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.1.2
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.

Variable: temp_regrid
Type: float
Total Size: 7200 bytes
            1800 values
Number of Dimensions: 2
Dimensions and sizes:[lat | 25] x [lon | 72]
Coordinates:
            lat: [ -60.. 60]
            lon: [ 0.. 355]
Number Of Attributes: 8
  remap :remapped via ESMF_regrid_with_weights: Bilinear remapping
  units :deg. C
  history :From ncep_sd_corrected_monthly_means
  long_name :TEMPERATURE
  _FillValue :-9.99e+33
  missing_value :-9.99e+33
  TIME :30.44000053405762
  DEPTH : 7.5

Best Regards,
Xiao-Feng

At 2013-07-13 01:19:04,"Mary Haley" <haley@ucar.edu> wrote:
The problem is that the "ESMF_RegridWeightGen" executable has a shared library dependency called "libgomp.1.dylib" that your system either doesn't have, or can't find.
If you type "libgomp.1.dylib" in the NCL search window, several links to previous ncl-talk questions on this come up. See:

http://www.ncl.ucar.edu/Support/talk_archives/2012/3229.html

I believe the issue is that you either have a gcc that is too old for the version of NCL that you downloaded, or else it was installed in a location that NCL can't find.

You may either need to upgrade your gcc version, or else try building your own version of ESMF_RegridWeightGen, which is not very trivial.

--Mary

On Jul 12, 2013, at 8:06 AM, heaven_bird334 <heaven_bird334@163.com> wrote:

Dear NCL users,
    I'm learning how to use NCL function "ESMF_regrid" in analyzing CMIP5 datasets. I started it from repeating the example "ESMF_regrid_1.ncl" . Before running this example, I downloaded the script and data firstly as follows:
    User_at_MacBook-5:/ESMF_regrid[247] wget http://www.ncl.ucar.edu/Applications/Data/cdf/sst.nc
    User_at_MacBook-5:/ESMF_regrid[248] wget http://www.ncl.ucar.edu/Applications/Scripts/ESMF_regrid_1.ncl
    User@MacBook-5:/ESMF_regrid[249] ls
          ESMF_regrid_1.ncl sst.nc

    When I run this script, the errors came out. These coming out errors really puzzled me a lot. And it also stopped my proceeding in using NCL function "ESMF_regrid". Any suggestion or help is thankworthy.

  My NCL version is 6.1.2 and my computer is Mac OS X 10.7.5.
  The error informations are as the following:
   
 User@MacBook-5:/ESMF_regrid[249] ncl ESMF_regrid_1.ncl
 Copyright (C) 1995-2013 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.1.2
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
dyld: Library not loaded: /usr/local/lib/libgomp.1.dylib
  Referenced from: /opt/local/NCL6.1.2/bin/ESMF_RegridWeightGen
  Reason: image not found
fatal:The result of the conditional expression yields a missing value. NCL can not determine branch, see ismissing function
fatal:["Execute.c":8128] :Execute: Error occurred at or near line 2291 in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl

fatal:["Execute.c":8128]:Execute: Error occurred at or near line 3166 in file $NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl

fatal:["Execute.c":8128]:Execute: Error occurred at or near line 58 in file ESMF_regrid_1.ncl

Best Regards,
Xiao-Feng

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Jul 13 09:50:49 2013

This archive was generated by hypermail 2.1.8 : Tue Jul 16 2013 - 13:21:17 MDT