Re: errors in shea_util.ncl

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 18 2010 - 11:51:00 MDT

You are using a 2-week old beta version

====================

Our current beta version has

3290 if (rankX.le.2 .or. rankX.ge.6) then

============
You or your sys admin could edit your local version

%> vi $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl

Change
      if (rankX.le.2 .or. rankX.ge.6)) then

to:
      if (rankX.le.2 .or. rankX.ge.6) then

Good luck

On 03/18/2010 11:40 AM, Mingxuan Chen wrote:
>
> Hello,
> I use NCL version 5.2.0-02Mar2010_1451. I found error message for load shea_util.ncl.
> I am wondering if I have a correct version.
> Thanks
> Mingxuan
>
> My scripts:
> -----test.ncl-------
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
>
> begin
> end
> --------------
>
>
>
> -----------error message-------
> talus 11:30 /Users/chen/D_ITCZ/som_mmf_mon> ncl test.ncl
> Copyright (C) 1995-2010 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 5.2.0-02Mar2010_1451
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> fatal:syntax error: line 3290 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl before or near )
>

> ---------------------------------^
>
> fatal:error in statement
> fatal:syntax error: line 3294 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl before or near if
> end if
> -------^
>
> fatal:error in statement
> fatal:Syntax Error in block, block not executed
> fatal:error at line 3294 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (dimDP) is undefined
> fatal:Execute: Error occurred at or near line 3296 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (X) is undefined
> fatal:Execute: Error occurred at or near line 3303 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (dp) is undefined
> fatal:Execute: Error occurred at or near line 3309 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (X) is undefined
> fatal:Execute: Error occurred at or near line 3315 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (X) is undefined
> fatal:Execute: Error occurred at or near line 3316 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (rankX) is undefined
> fatal:Execute: Error occurred at or near line 3318 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (rankX) is undefined
> fatal:Execute: Error occurred at or near line 3321 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (rankX) is undefined
> fatal:Execute: Error occurred at or near line 3324 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (Xdp) is undefined
> fatal:Execute: Error occurred at or near line 3328 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (iopt) is undefined
> fatal:Execute: Error occurred at or near line 3329 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (con) is undefined
> fatal:Execute: Error occurred at or near line 3347 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (long_name) is undefined
> fatal:Execute: Error occurred at or near line 3348 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (units) is undefined
> fatal:Execute: Error occurred at or near line 3349 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:Variable (VI) is undefined
> fatal:Execute: Error occurred at or near line 3351 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
> fatal:syntax error: line 3352 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl before or near end
> end
> ----^
>
> fatal:error in statement
> ----------------
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
======================================================
Dennis J. Shea                  tel: 303-497-1361    |
P.O. Box 3000                   fax: 303-497-1333    |
Climate Analysis Section                             |
Climate & Global Dynamics Div.                       |
National Center for Atmospheric Research             |
Boulder, CO  80307                                   |
USA                        email: shea 'at' ucar.edu |
======================================================
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 18 11:51:09 2010

This archive was generated by hypermail 2.1.8 : Fri Mar 19 2010 - 16:19:08 MDT