Re: Minor bug in shea_util.ncl in 6.1.2

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Feb 12 2013 - 13:09:25 MST

Thanks Carl,

This is the change that you have to make to shea_util.ncl:

===================================================================
--- shea_util.ncl (revision 14164)
+++ shea_util.ncl (working copy)
@@ -4488,7 +4488,7 @@
 
 end
 ;-------------------------------------
-undef("calc_day_stat")
+undef("calc_day_values")

On Feb 12, 2013, at 12:39 PM, Carl Schreck wrote:

> Very minor bug to draw to your attention. In 6.1.2, it looks like you can't load shea_util twice. I think there's a typo in an undef somewhere. See the output below.
>
> Cheers,
> Carl
>
> $ 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.
> ncl 0> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> ncl 1> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> ncl 2> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> ncl 3> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
> ncl 4> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
> fatal:syntax error: line 4492 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl before or near calc_day_values
> function calc_day_values
> -----------------------^
>
> fatal:Function identifier is defined
> fatal:syntax error: line 4494 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl before or near local
> local
> ----^
>
> fatal:error in statement
> fatal:Variable (opt) is still undefined, unable to reference attribute tstep
> fatal:["Execute.c":8128]:Execute: Error occurred at or near line 4498 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl
>
>
> --
> Carl J. Schreck III, PhD
> Cooperative Institute for Climate and Satellites (CICS-NC)
> North Carolina State University | NOAA's National Climatic Data Center
> Email: carl@cicsnc.org | Tel: 828-257-3140
> http://www.cyclonecenter.org/ | http://monitor.cicsnc.org/mjo/
> _______________________________________________
> 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 Tue Feb 12 13:10:54 2013

This archive was generated by hypermail 2.1.8 : Wed Feb 13 2013 - 09:25:58 MST