<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p></p>
<div class="gmail_default" style="font-family: tahoma,sans-serif; color: rgb(0, 0, 0);">
Hi there,<br>
<br>
</div>
<div class="gmail_default" style="font-family: tahoma,sans-serif; color: rgb(0, 0, 0);">
I'm trying to make a hovmoller plot with shading and contours. However, when I set "cres@cnSmoothingOn = True" for the contours, the script will hang when it tries to draw the plot- it doesn't reach the "RIGHT AFTER DRAW PLOT" print statement. The script works
fine when "cres@cnSmoothingOn = False". I'm using NCL version 6.3.0 (ncl_ncarg-6.3.0.Linux_RHEL6.4_x86_64_nodap_gcc447.tar.gz). I've pasted the script below, and have attached the script and data file.<br>
<br>
</div>
<div class="gmail_default" style="font-family: tahoma,sans-serif; color: rgb(0, 0, 0);">
Thanks in advance for any help,<br>
</div>
<div class="gmail_default" style="font-family: tahoma,sans-serif; color: rgb(0, 0, 0);">
Andy<br>
</div>
<br>
-------------<br>
<br>
begin<br>
<br>
a = addfile("./test_data.nc","r")<br>
var = a->var<br>
var_filter = a->var_filter<br>
<br>
;#### Create Workstation ####<br>
plotname = "test"<br>
wks = gsn_open_wks("png", plotname)<br>
<br>
;#### Define Color Map ####<br>
gsn_define_colormap(wks, "ncl_default")<br>
<br>
;#### Shading Resources ####<br>
res = True<br>
res@cnFillOn = True<br>
res@cnLinesOn = False<br>
res@cnLineLabelsOn = False<br>
res@cnSmoothingOn = True<br>
res@gsnDraw = False<br>
res@gsnFrame = False<br>
res@gsnSpreadColors = True<br>
<br>
;#### Contour Resources ####<br>
cres = res<br>
cres@cnFillOn = False<br>
cres@gsnContourNegLineDashPattern = 1<br>
cres@cnLinesOn = True<br>
cres@cnSmoothingOn = True ; if set to True, plot will not draw<br>
cres@cnLineLabelsOn = False<br>
cres@cnLevelSelectionMode = "ExplicitLevels"<br>
cres@cnLineColor = "black"<br>
cres@cnInfoLabelOn = False<br>
cres@cnLineThicknessF = 3.0<br>
<br>
;#### Create Plot ####<br>
plot_var = gsn_csm_hov(wks, var, res)<br>
plot_var_filter = gsn_csm_hov(wks, var_filter, cres)<br>
overlay(plot_var,plot_var_filter)<br>
<br>
print("RIGHT BEFORE DRAW PLOT")<br>
draw(plot_var)<br>
print("RIGHT AFTER DRAW PLOT")<br>
<br>
frame(wks)<br>
delete(wks)<br>
<br>
end<br>
<br>
<p></p>
</div>
</body>
</html>