[ncl-talk] Strange white lines across plot

Mary Haley haley at ucar.edu
Mon Aug 4 10:52:57 MDT 2014


Hi Michael,

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.

Can you provide your VAR3 variable, say in a NetCDF file, so we can try
running your script here?

--Mary


On Fri, Aug 1, 2014 at 4:10 PM, Michael Notaro <mnotaro at wisc.edu> wrote:

>
> I am using NCL 6.1.2. Please see the attached plot
>
> and note the odd white lines across the figure. Any
>
> idea what caused it and how to remove it?
>
>
>
>
> The plotting lines are listed below.
>
>
>
>
> If I change the data values in the plot to some
>
> arbitrary value, sometimes the lines go away.
>
>
>
>
> Michael
>
>
>
>
>
>
>
> wks=gsn_open_wks("ps","bar_revised2")
>
> gsn_define_colormap(wks, "NCV_blue_red")
>
>
>
>
> res = True
>
> res at gsnDraw = False
>
> res at gsnFrame = False
>
> res at cnRasterModeOn=True
>
> res at cnFillDrawOrder = "PreDraw"
>
> res at tmXTOn = False
>
> res at tmXTBorderOn = False
>
> res at tmYROn = False
>
> res at tmYRBorderOn = False
>
> res at tmXBOn = False
>
> res at tmXBBorderOn = False
>
> res at tmYLOn = False
>
> res at tmYLBorderOn = False
>
> res at lbLabelFont = 25
>
> res at lbLabelFontHeightF = 0.012
>
> res at lbBottomMarginF = 0.5
>
> res at lbTopMarginF = 0.25
>
> res at cnFillOn = True
>
> res at cnLinesOn = False
>
> res at cnLevelSelectionMode = "ManualLevels"
>
>
>
>
> lower=int2flt(floattointeger(min(VAR3)*100.))/100.
>
> upper=int2flt(floattointeger(max(VAR3)*100.))/100.
>
> delta=fabs(lower-upper)
>
>
>
>
> res at cnLevelSpacingF=0.01
>
>
>
>
> if ( (delta.ge.0.).and.(delta.lt.0.0025) ) then
>
>  res at cnLevelSpacingF=0.00001
>
> end if
>
> if ( (delta.ge.0.0025).and.(delta.lt.0.025) ) then
>
>  res at cnLevelSpacingF=0.0001
>
> end if
>
> if ( (delta.ge.0.025).and.(delta.lt.0.25) ) then
>
>  res at cnLevelSpacingF=0.001
>
> end if
>
> if ( (delta.ge.0.25).and.(delta.lt.2.5) ) then
>
>  res at cnLevelSpacingF=0.01
>
> end if
>
> if ( (delta.ge.2.5).and.(delta.lt.25.0) ) then
>
>  res at cnLevelSpacingF=0.1
>
> end if
>
> if ( (delta.ge.25.).and.(delta.lt.250) ) then
>
>  res at cnLevelSpacingF=1.0
>
> end if
>
> if ( (delta.ge.250.).and.(delta.lt.2500.) ) then
>
>  res at cnLevelSpacingF=10.0
>
> end if
>
>
>
>
> res at gsnSpreadColors=True
>
>
>
>
> if ( (lower.ge.0.).and.(upper.ge.0.) ) then
>
>  res at gsnSpreadColorStart=120
>
>  res at gsnSpreadColorEnd=2
>
> end if
>
> if ( (lower.le.0.).and.(upper.le.0.) ) then
>
>  res at gsnSpreadColorStart=255
>
>  res at gsnSpreadColorEnd=137
>
> end if
>
>
>
>
> if ( (lower.lt.0.).and.(upper.gt.0.) ) then
>
>  ratio=fabs(lower)/fabs(upper)
>
>  res at gsnSpreadColorStart=255
>
>  res at gsnSpreadColorEnd=128-floattointeger(128./ratio)
>
> end if
>
>
>
>
> res at cnMinLevelValF=lower
>
> res at cnMaxLevelValF=upper
>
>
>
>
> res at lbBoxLinesOn=False
>
>
>
>
>
>
> plot = gsn_csm_contour(wks, VAR3, res)
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140804/8f82b7fe/attachment.html 


More information about the ncl-talk mailing list