Hi,
I'm just ramping up on NCL and have installed and configured NCL on a
couple of
different Linux platforms, and am trying to run the examples from
"Getting Started
Using NCL."
http://ngwww.ucar.edu/ngdoc/ng/ug/ncl/gsun/examples.html
Example 1 produces the expected output, though I get lots of
"Fatal: syntax error" messages, and I've excerpted a few here.
Again, the program actually runs and produces all the expected
graphics.
*******************************************************************************
fatal:error in statement
fatal:syntax error: line 5584 in file gsn_code.ncl before or near
"sfYArray
"sfYArray"
-----------------^
fatal:error in statement
fatal:syntax error: line 5585 in file gsn_code.ncl before or near create
end create
---------------^
fatal:error in statement
fatal:Syntax Error in block, block not executed
********************************************************************************
Example 2 doesn't work - I get the same sorts of error messages, then a
window
pops up and quickly vanishes. I've "trimmed down" Example 2 source code
to the
following:
********************************************************************************
load "gsn_code.ncl"
begin
cdf_file = addfile("$NCARG_ROOT/lib/ncarg/data/cdf/contour.cdf","r")
temp = cdf_file->T(0,0,:,:) ; temperature
Z = cdf_file->Z(0,0,:,:) ; geopotential height
pres = cdf_file->Psl(0,:,:) ; pressure at mean sea level
lat = cdf_file->lat ; latitude
lon = cdf_file->lon ; longitude
; temp = temp - 273.15 ; Convert Kelvin -> Celsius
; pres = pres * 0.01 ; Convert Pa -> mb
; temp@units = "(C)" ; Change units to reflect
; pres@units = "(mb)" ; conversion done.
xwks = gsn_open_wks("x11","gsun02n") ; Open an X11 workstation.
plot = gsn_contour(xwks,temp,False) ; Draw a contour plot.
end
*************************************************************************
and the last error messages I get are:
**************************************************************************
fatal:error in statement
fatal:syntax error: line 5585 in file gsn_code.ncl before or near create
end create
---------------^
fatal:error in statement
fatal:Syntax Error in block, block not executed
fatal:Undefined identifier: (scalar_field) is undefined, can't continue
fatal:Execute: Error occurred at or near line 6704 in file gsn_code.ncl
fatal:Execute: Error occurred at or near line 19
**************************************************************************
it appears my errors are originating in gsn_code.ncl.
Under the assumption that the example code is correct, I have to start
thinking there is an installation issue, though I don't know where I
might start to track this down. I'm using the binaries for NCL
4.2.0-a031,
compiled for RH 7.x. These problems have occured identically on both a
RH 7.2 machine and a RH Enterprise machine.
I verified that the "contour.cdf" is where it should be and used ncdump
to make sure all the requested variables were actually in there.
Thanks for any leads :)
Don Morton
-- ** NOT ON CAMPUS UNTIL SPRING 2005 **************************************************************** Don Morton http://www.cs.umt.edu/~morton/ Department of Computer Science The University of Montana Missoula, MT 59812 | Voice (406) 243-4975 | Fax (406) 243-5139
May your trails be crooked, winding, lonesome, dangerous, leading to the most amazing view. May your mountains rise into and above the clouds. -Edward Abbey, naturalist and author (1927-1989)
_______________________________________________ ncl-talk mailing list ncl-talk AT ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Wed Nov 17 2004 - 14:38:29 MST