Script for DRAW option in LatLon vs inches on virtual screen

Alfredo Ruiz-Barradas alfredo at ATMOS.UMD.EDU
Thu Jul 13 12:14:15 EDT 2006


Aloha,

this is what I use to make a box; for instance, over central US:


*
raya=pintaraya(260,35,260,45,4,1,4)
raya=pintaraya(270,35,270,45,4,1,4)
raya=pintaraya(260,35,270,35,4,1,4)
raya=pintaraya(260,45,270,45,4,1,4)
*


function pintaraya(lon1,lat1,lon2,lat2,col,sty,thic)
*This function is good for drawing a line
*from (lon1,lat1) to (lon2,lat2) with color "col",
*style "sty" and thickness "thic".
*
'q w2xy 'lon1' 'lat1
say result
x1 = subwrd(result,3)
y1 = subwrd(result,6)
'q w2xy 'lon2' 'lat2
say result
x2 = subwrd(result,3)
y2 = subwrd(result,6)
'set line 'col' 'sty' 'thic
'draw line 'x1' 'y1' 'x2' 'y2
return

Hope this helps,

Alfredo

Jason E Patla wrote:

>Aloha,
>I couldn't find the answer in the message backlog, so..
>Does anyone know of a script that allows the DRAW option (x, square, circle, etc) via lat-lon coordinates instead of "inches" on the virtual 8.5" x 11" screen?  Eyeballing is becoming a pain!  :)
>Thanks!
>Jason
>
>


--
.............................................
Alfredo Ruiz-Barradas, PhD
Department of Atmospheric and Oceanic Science
University of Maryland
College Park, MD 20742-2425, USA
Email: alfredo at atmos.umd.edu
Tel: (301) 405-0160 * Fax: (301) 314-9482
http://www.atmos.umd.edu/~alfredo



More information about the gradsusr mailing list