<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Sorry for cross-posting but I think the full error message will be more
meaningful. Here the error I get:<br>
<br>
fatal:ContourPlotDraw: CTTMTL/ICAEDG - LOGIC ERROR<br>
ERROR 5 IN CTTMTL/ICAEDG - LOGIC ERROR<br>
fatal:ContourPlotDraw: CTMESH - UNCLEARED PRIOR ERROR<br>
fatal:ContourPlotDraw: draw error<br>
warning:WorkstationDeactivate: workstation not active or not opened<br>
<br>
And the code is:<br>
<br>
<blockquote type="cite"> load
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br>
<br>
begin<br>
<br>
inf = addfile("marmara.nc","r")<br>
<br>
scale_factor = inf->z@scale_factor<br>
add_offset = inf->z@add_offset<br>
topo = scale_factor * (inf->z) + add_offset<br>
<br>
lons = inf->x_range<br>
lats = inf->y_range<br>
latarray = fspan(lats(0),lats(1),108781)<br>
lonarray = fspan(lons(0),lons(1),108781)<br>
<br>
wks = gsn_open_wks("x11","Black_Sea")<br>
gsn_define_colormap (wks,"gui_default")<br>
<br>
res = True<br>
res@cnFillOn = True ; turn on color<br>
res@cnLinesOn = False ; no contour lines<br>
res@gsnSpreadColors = True ; use full color map<br>
res@lbLabelAutoStride = True ; every other label<br>
res@cnRasterModeOn = True<br>
res@gsnAddCyclic = False ; regional data<br>
<br>
res@cnLevelSelectionMode = "AutomaticLevels" ; automatic levels<br>
;res@cnMinLevelValF = 100.<br>
;res@cnMaxLevelValF = 3500.<br>
;res@cnLevelSpacingF = 100.<br>
<br>
<br>
res@tiMainString = "Black Sea"<br>
res@sfXArray = lonarray ; uses longitude as
plot x-axis<br>
res@sfYArray = latarray ; uses latitude as plot
y-axis<br>
<br>
res@tfDoNDCOverlay = True ; do not transform data<br>
res@pmTickMarkDisplayMode = "Always" ; get a box around the
plot<br>
<br>
plot = gsn_csm_contour(wks,topo,res)<br>
<br>
end</blockquote>
<br>
<br>
Regards,<br>
<div class="moz-signature">-- <br>
<b>Ekin Akoglu</b>
<br>
<br>
Institute of Marine Sciences
<br>
Middle East Technical University
<br>
P.O. Box 28, 33731
<br>
Erdemli, Mersin
<br>
Turkey
<br>
<br>
Web: <a href="www.ims.metu.edu.tr">www.ims.metu.edu.tr</a>
<br>
Email: <a href="mailto:ekin@ims.metu.edu.tr">ekin@ims.metu.edu.tr</a>
<br>
Phone: +90 324 521 34 34
<br>
GSM: +90 506 554 03 90</div>
<br>
<div class="moz-signature">-- <br>
<b>Ekin Akoglu</b>
<br>
<br>
Institute of Marine Sciences
<br>
Middle East Technical University
<br>
P.O. Box 28, 33731
<br>
Erdemli, Mersin
<br>
Turkey
<br>
<br>
Web: <a href="www.ims.metu.edu.tr">www.ims.metu.edu.tr</a>
<br>
Email: <a href="mailto:ekin@ims.metu.edu.tr">ekin@ims.metu.edu.tr</a>
<br>
Phone: +90 324 521 34 34
<br>
GSM: +90 506 554 03 90</div>
</body>
</html>