[gradsusr] plotting a circle with a center and a defined radius in grads
Lyndon Mark Olaguera
olagueralyndonmark429 at gmail.com
Sat Feb 1 08:16:07 EST 2014
Hi all,
I'd like to plot a point in grads and I want to add an enclosing circle
with a defined radius. I was able to add a circle, but the radius is not
correct. any ideas how to do this? what is the dimension of "csize" in
grads?
here's my script
'open rm1station_final.ctl'
'set display color white'
'c'
'set mpdset hires'
'set clevs 0 1'
'set ccols 0 '
'd landmask'
clon=121.02722
clat=14.57306
degrees=0.03
*makati02 station
'q w2xy 'clon' 'clat
x1 = subwrd(result,3)
y1 = subwrd(result,6)
radlon=clon+degrees
'q w2xy 'radlon' 'clat
x2 = subwrd(result,3)
y2 = subwrd(result,6)
csize=(x2-x1)
'draw mark 3 'x1' 'y1' 'csize
'printim station_locations.png'
'quit'
*Lyndon Mark P. Olaguera*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140201/3df229ec/attachment-0001.html
More information about the gradsusr
mailing list