Re: what is the matter with gsn_csm.ncl

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu Jul 26 2012 - 07:25:57 MDT

The mistake is that you did not load "gsn_code.ncl"
prior to loading "gsn_csm.ncl". The 'set_attr' is
an internal procedure contained within "gsn_code.ncl"

  load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
  load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"

On 7/26/12 2:13 AM, Jie Tang wrote:
> hi NCL usrs
> I found a mistake in gsn_csm.ncl in version 6.1 and 5.1
> the sample test ncl script is shown and only loaded two ncl script.
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> begin
> end
> There are many mistakes as shown below. How could I fix this problem?
> thank you .
>
> error message is here.
> copyright (C) 1995-2012 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 6.1.0-beta
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> fatal:syntax error: line 962 in file
> $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl before or near \n
> set_attr(tires,axis_res,"")
> -------------------------------^
>
> ^Mfatal:syntax error: possibly an undefined procedure
> ^Mfatal:syntax error: line 968 in file
> $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl before or near \n
> set_attr(tires,axis_res,axis_string)
> ----------------------------------------------^
>
> ^Mfatal:syntax error: possibly an undefined procedure
> ^Mfatal:syntax error: line 974 in file
> $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl before or near \n
> set_attr(tires,axis_res,axis_string)
> --------------------------------------------^
>
> ^Mfatal:syntax error: possibly an undefined procedure
> ^Mfatal:syntax error: line 979 in file
> $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl before or near \n
> attsetvalues_check(plot,tires)
> --------------------------------^
>
> ^Mfatal:syntax error: possibly an undefined procedure
> ^Mfatal:Syntax Error in block, block not executed
> ^Mfatal:error at line 981 in file
> $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl
>
> ^Mfatal:syntax error: line 1888 in file
> $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl before or near ; Set
> some text resources.
>
>
> --
> TANG Jie
> Email: totangjie@gmail.com <mailto:totangjie@gmail.com>
> Tel: 0086-2154896104
> Shanghai Typhoon Institute,China
>
>
> _______________________________________________
> 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 Thu Jul 26 07:26:07 2012

This archive was generated by hypermail 2.1.8 : Fri Aug 03 2012 - 14:39:58 MDT