syntax errors with gsn_csm.ncl

From: Chris Hennon (chennon@XXXXXX)
Date: Mon Jul 23 2001 - 14:10:04 MDT


Hello. I downloaded what I believe is the latest version of gsn_csm.ncl
for use with NCL version 4.2.0.a019 and tried to produce a simple polar
stereographic plot. I received a series of syntax errors for the
gsn_csm.ncl file when I tried to run my script:

% ncl < polar_ster_nh.ncl
 Copyright (C) 1995-2001 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 4.2.0.a019
 The use of this software is governed by a License Agreement.
 See http://ngwww.ucar.edu/ncl/ for more details.
fatal:syntax error: line 1262 in file gsn_csm.ncl before or near \n

--------------------------^

fatal:syntax error: possibly an undefined procedure
fatal:Syntax Error in block, block not executed
fatal:syntax error: line 3380 in file gsn_csm.ncl before or near \n

and it goes on and on. I am relatively new to both NCL and NCAR Graphics
plotting philosophies so I may be doing something incorrectly. For
reference my script looks like this:

;******************************************************************
; Creates a polar stererographic plot of the northern hemisphere
;******************************************************************

load "gsn_code.ncl"
load "gsn_csm.ncl"

begin

cntfile = addfile("T.ccm3-cnt2.nc","r")
icefile = addfile("T.ccm3-noice.nc","r")

temp = cntfile->T(0,10,:,:)
itemp = icefile->T(0,10,:,:)
anomaly = (temp - itemp)

wks = gsn_open_wks("x11","My Window")
res = True
res@gsnPolar = "NH"
plot = gsn_csm_contour_map_polar(wks,anomaly,res)

end

Thanks for any ideas.

Chris
Ohio State University



This archive was generated by hypermail 2b29 : Tue Feb 19 2002 - 09:06:06 MST