David Nielsen davidnielsen at id.uff.br
Thu Mar 1 17:31:41 EST 2018

```Jeff,

You can make a function like the following to draw lines to make a polygon.
In this case, (ir)regular 4-side polygons. Is this what you meant?

******************* This funtion draws a box
* Usage:
* ddbox lat1 lat2 lat3 lat4 lon1 lon2 lon3 lon4

function ddbox(arg)

lat1=subwrd(arg,1)
lat2=subwrd(arg,2)
lat3=subwrd(arg,3)
lat4=subwrd(arg,4)
lon1=subwrd(arg,5)
lon2=subwrd(arg,6)
lon3=subwrd(arg,7)
lon4=subwrd(arg,8)

'set line 1 1 12'

'q w2xy 'lon1' 'lat1
x1=subwrd(result,3)
y1=subwrd(result,6)

'q w2xy 'lon2' 'lat2
x2=subwrd(result,3)
y2=subwrd(result,6)

'q w2xy 'lon3' 'lat3
x3=subwrd(result,3)
y3=subwrd(result,6)

'q w2xy 'lon4' 'lat4
x4=subwrd(result,3)
y4=subwrd(result,6)

'draw line 'x1' 'y1' 'x2' 'y2
'draw line 'x2' 'y2' 'x3' 'y3
'draw line 'x3' 'y3' 'x4' 'y4
'draw line 'x4' 'y4' 'x1' 'y1

return

2018-03-01 19:13 GMT-03:00 Jeff Duda <jeffduda319 at gmail.com>:

> Is there a version of the draw polyf function to draw an unfilled polygon?
>
> Jeff Duda
>
> --
> Jeff Duda, Research Scientist
>
>
> Cooperative Institute for Research in Environmental Sciences
>
> NOAA/OAR/ESRL/Global Systems Division
> Boulder, CO
>
> _______________________________________________