Re: why is the edge in raster fill plot so blurred?

From: Xiuzhen Ren <xiuzhenren_at_nyahnyahspammersnyahnyah>
Date: Thu Jun 05 2014 - 14:43:53 MDT

Hi ncl-talk,

This is the follow up regarding the blurred raster fill plot that was first
reported about 1 year ago.

http://www.ncl.ucar.edu/Support/talk_archives/2013/0347.html

At that time, the solution was to use 'oldpdf' instead of 'pdf' as the file
format for wks resource.

Recently I found there is a new problem from this fix: the fill color for
_FillValue becomes black.

This fillcolor problem occurs recently as I had tested in early 2014 and
the fillcolor was the default white color.

Here is the script I revised from the original thread that illustraes the
'black' fillcolor problem. Is there a quick fix to change the fillcolor
from black to white? Thanks!

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
begin
nx = 5
ny = 5
data = new( (/ny, nx/), float)

do i = 0, nx-1
   do j = 0, ny-1
      data(j,i) = rand()
   end do
end do

data@_FillValue = 1e35

data(1:2,1:2) = 1e35

wks = gsn_open_wks( "oldpdf", "./test") ;plotdir+"/"+varname)
res_ct = True

res_ct@cnFillOn = True
res_ct@cnLinesOn = False
res_ct@cnFillMode = "RasterFill"
res_ct@lbOrientation = "vertical"
res_ct@gsnSpreadColors = True
plot = gsn_csm_contour( wks, data, res_ct)
end

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jun 05 14:44:06 2014

This archive was generated by hypermail 2.1.8 : Sat Jun 07 2014 - 11:03:12 MDT