polyfill [message #45726] |
Thu, 29 September 2005 10:01 |
psbeps
Messages: 8 Registered: March 2005
|
Junior Member |
|
|
I am using polyfill to make global images of radiation data where each
point is a circle filled with a color. For the highest values the
points are red, and for low values the points are pink. The data is
organized sequentially in the order that the satellite scanned it.
Where the satellite had problems, the data is missing. The missing
value is -9999 so it shows up as pink, but I want the missing dots to
be gray. I don't know how to do that with polyfill since the missing
points are random and polyfill draws each circle in order of the number
of points. I know where the missing points are, and I have a color
index set up for gray. I was going to replace "zcolors(j)" with
"grayColor", but since it's a For loop, doing the points in order, it
takes the total count of missing points, and makes them gray in order,
instead of the random order that they are in. Any suggestions? Here is
the code:
;** Plot data points at x,y coordinates as colored circles.
; Subtract 6 to not use the assigned colors.
; z is the outgoing longwave radiation
zcolors=Bytscl(z, Top=!D.Table_Size-6)
coords=Convert_Coord(x,y, /Data, /To_Device)
x=coords(0,*)
y=coords(1,*)
For j=0L, countg-1L DO Polyfill, Circle(x(j), y(j), 0.5), /Fill,
Color=zcolors(j), /Device
Jill
|
|
|