Re: ESMF_RegridWeightGen not found

From: Sean Davis <seand13_at_nyahnyahspammersnyahnyah>
Date: Fri Dec 27 2013 - 16:08:54 MST
Hi Roy,

Thanks for the clarification. I'm talking about sif, although I confirmed that the problem also occured in ncl 6.1.0 on Tintagel.

Sean

On 12/27/13 3:18 PM, H. LeRoy Miller - NOAA Affiliate wrote:
Hi Mary & Sean,

on the Mac systems, we use Macports to install ncl. �Doing so requires that I download and place the ncarg-xxx.tgz file in the proper place in the Macports tree. �I�ll have to check whether this method uses the Linux or the Mac tgz file for its source. �It may be that it uses the Linux tgz file, which may/may not have the build for the binary you are discussing.

Macports has been moving to binary installations, however I suspect that ncl_ncarg is one that is built from source. �This may be the �source� of the issue.

We are compiling on the Macports compiled code with gcc-4.5, on our 10.6.8 Macs. �gfortran is not installed, and certainly no libraries compiled by gfortran should exist on any of our systems.

Which computer are you looking at concerning this issue, Sean, Sif or Tintagel?

Roy


Henry LeRoy Miller, Jr.
National Oceanic and�Atmospheric Administration��
Earth System Research�Laboratory
Chemical Sciences Division
Chemistry & Climate�Processes
325 Broadway - R/CSD8
Boulder, CO �80305-3328
USA

phone: 303-497-7209
fax: � 303-497-5686
email:�Henry.LeRoy.Miller@noaa.gov

On Dec 27, 2013, at 13:17, Mary Haley <haley@ucar.edu> wrote:


On Dec 27, 2013, at 1:12 PM, Sean Davis <seand13@gmail.com> wrote:

Hi Mary,

I attempted to join the ncl-talk list after getting my post pinged because I hadn't joined. But I guess I'm awaiting approval now?


Hi Sean,

Yes, it was awaiting approval and I just approved it. Thanks for doing this.


I'm CC'ing the person who installed NCL on my machine. I'm not sure how he installed it, but I doubt he built it from source. Roy, how did you install NCL on our macs?

More information: The "ESMF_RegridWeightGen" binary should be in the same directory as the "ncl" binary. You can verify this with :

ls $NCARG_ROOT/bin/ncl
ls $NCARG_ROOT/bin/ESMF_RegridWeightGen

Of course, this means that NCARG_ROOT must be set correctly. It looks to me like it is, otherwise you would be seeing different error messages.

I just verified that the "ESMF_RegridWeightGen" binary is indeed included in the MacOS 10.6.8 / NCL V6.1.2 tar file that we provide on the ESG:

ncl_ncarg-6.1.2.MacOS_10.6_64bit_gcc460.tar.gz

If this is the file you used for the installation, then it should be there.

--Mary


Thanks,
Sean

On 12/27/13 1:03 PM, Mary Haley wrote:
Hi Sean,

In the future, please post your question to ncl-talk@ucar.edu. You need to subscribe first:

http://mailman.ucar.edu/mailman/listinfo/ncl-talk

You should also read our posting guidelines before you post.

http://www.ncl.ucar.edu/Support/posting_guidelines.shtml

The ESMF_RegridWeightGen command should have been installed with NCL, unless NCL was built from source code.

How did you install NCL on your system?

--Mary

On Dec 27, 2013, at 12:48 PM, Sean Davis <seand13@gmail.com> wrote:

Hi,

I'm having a problem with ESMF_regrid which seems to be that the unix command ESMF_RegridWeightGen is not found. �To make the problem easy to illustrate, I adapted Example 1 from the ESMF_regrid() documentation, and used the file air.mon.ltm.nc from the NCEP/NCAR reanalysis. I uploaded the .nc file to the CGD ftp site given on the webpage.

Here is the example script....

Fri Dec 27 12:33:25 sif scripts> more ex1.ncl
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl"

begin
������infile = "/Users/sdavis/sd-data/ncep/ncep.reanalysis.derived/pressure/air.mon.ltm.nc"

��sfile = addfile(infile,"r")
��temp �= sfile->air(0,0,:,:)

��Opt ���������������= True

��Opt@SrcFileName ���= "src_SCRIP.nc"
��Opt@DstFileName ���= "dst_SCRIP.nc"
��Opt@WgtFileName ���= "NCEP_2_Rect.nc"
��Opt@ForceOverwrite = True

��Opt@SrcMask2D �����= where(.not.ismissing(temp),1,0)

��Opt@DstGridType ���= "5x5"
��Opt@DstLLCorner ���= (/ -60.d, ��0.d/)
��Opt@DstURCorner ���= (/ �60.d, 355.d/)

��temp_regrid = ESMF_regrid(temp,Opt)
��printVarSummary(temp_regrid)
end

And here's what happens when I try to run it...

Fri Dec 27 12:31:57 sif scripts> ncl ex1.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.
sh: ESMF_RegridWeightGen: command 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 23 in file ex1.ncl

I'm running NCL on Mac OSX 10.6.8.

Any ideas on what could be causing this problem?

Thanks!!

Sean





Received on Fri Dec 27 11:08:53 2013

This archive was generated by hypermail 2.1.8 : Wed Jul 23 2014 - 15:33:46 MDT