<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Michael,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I really don't have any idea about this one. We did fix a bug in V6.1.2 that caused thin white lines to show up, but this doesn't look like a case of that.</div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Can you provide your VAR3 variable, say in a NetCDF file, so we can try running your script here?</div><div class="gmail_default" style="font-size:small">
<br></div><div class="gmail_default" style="font-size:small">--Mary</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 1, 2014 at 4:10 PM, Michael Notaro <span dir="ltr"><<a href="mailto:mnotaro@wisc.edu" target="_blank">mnotaro@wisc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I am using NCL 6.1.2. Please see the attached plot<br>
<br>
and note the odd white lines across the figure. Any<br>
<br>
idea what caused it and how to remove it?<br>
<br>
<br>
<br>
<br>
The plotting lines are listed below.<br>
<br>
<br>
<br>
<br>
If I change the data values in the plot to some<br>
<br>
arbitrary value, sometimes the lines go away.<br>
<br>
<br>
<br>
<br>
Michael<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
wks=gsn_open_wks("ps","bar_revised2")<br>
<br>
gsn_define_colormap(wks, "NCV_blue_red")<br>
<br>
<br>
<br>
<br>
res = True<br>
<br>
res@gsnDraw = False<br>
<br>
res@gsnFrame = False<br>
<br>
res@cnRasterModeOn=True<br>
<br>
res@cnFillDrawOrder = "PreDraw"<br>
<br>
res@tmXTOn = False<br>
<br>
res@tmXTBorderOn = False<br>
<br>
res@tmYROn = False<br>
<br>
res@tmYRBorderOn = False<br>
<br>
res@tmXBOn = False<br>
<br>
res@tmXBBorderOn = False<br>
<br>
res@tmYLOn = False<br>
<br>
res@tmYLBorderOn = False<br>
<br>
res@lbLabelFont = 25<br>
<br>
res@lbLabelFontHeightF = 0.012<br>
<br>
res@lbBottomMarginF = 0.5<br>
<br>
res@lbTopMarginF = 0.25<br>
<br>
res@cnFillOn = True<br>
<br>
res@cnLinesOn = False<br>
<br>
res@cnLevelSelectionMode = "ManualLevels"<br>
<br>
<br>
<br>
<br>
lower=int2flt(floattointeger(min(VAR3)*100.))/100.<br>
<br>
upper=int2flt(floattointeger(max(VAR3)*100.))/100.<br>
<br>
delta=fabs(lower-upper)<br>
<br>
<br>
<br>
<br>
res@cnLevelSpacingF=0.01<br>
<br>
<br>
<br>
<br>
if ( (delta.ge.0.).and.(delta.lt.0.0025) ) then<br>
<br>
res@cnLevelSpacingF=0.00001<br>
<br>
end if<br>
<br>
if ( (delta.ge.0.0025).and.(delta.lt.0.025) ) then<br>
<br>
res@cnLevelSpacingF=0.0001<br>
<br>
end if<br>
<br>
if ( (delta.ge.0.025).and.(delta.lt.0.25) ) then<br>
<br>
res@cnLevelSpacingF=0.001<br>
<br>
end if<br>
<br>
if ( (delta.ge.0.25).and.(delta.lt.2.5) ) then<br>
<br>
res@cnLevelSpacingF=0.01<br>
<br>
end if<br>
<br>
if ( (delta.ge.2.5).and.(delta.lt.25.0) ) then<br>
<br>
res@cnLevelSpacingF=0.1<br>
<br>
end if<br>
<br>
if ( (delta.ge.25.).and.(delta.lt.250) ) then<br>
<br>
res@cnLevelSpacingF=1.0<br>
<br>
end if<br>
<br>
if ( (delta.ge.250.).and.(delta.lt.2500.) ) then<br>
<br>
res@cnLevelSpacingF=10.0<br>
<br>
end if<br>
<br>
<br>
<br>
<br>
res@gsnSpreadColors=True<br>
<br>
<br>
<br>
<br>
if ( (lower.ge.0.).and.(upper.ge.0.) ) then<br>
<br>
res@gsnSpreadColorStart=120<br>
<br>
res@gsnSpreadColorEnd=2<br>
<br>
end if<br>
<br>
if ( (lower.le.0.).and.(upper.le.0.) ) then<br>
<br>
res@gsnSpreadColorStart=255<br>
<br>
res@gsnSpreadColorEnd=137<br>
<br>
end if<br>
<br>
<br>
<br>
<br>
if ( (lower.lt.0.).and.(upper.gt.0.) ) then<br>
<br>
ratio=fabs(lower)/fabs(upper)<br>
<br>
res@gsnSpreadColorStart=255<br>
<br>
res@gsnSpreadColorEnd=128-floattointeger(128./ratio)<br>
<br>
end if<br>
<br>
<br>
<br>
<br>
res@cnMinLevelValF=lower<br>
<br>
res@cnMaxLevelValF=upper<br>
<br>
<br>
<br>
<br>
res@lbBoxLinesOn=False<br>
<br>
<br>
<br>
<br>
<br>
<br>
plot = gsn_csm_contour(wks, VAR3, res)<br>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>