[gradsusr] Input locations and draw lines
Mikovitz, Colleen (LARC-E302)[Science Systems & Applications, Inc.]
j.c.mikovitz at nasa.gov
Mon Mar 11 10:38:39 EDT 2019
I have this one that I use (I call it line_lat.gs)
**********************
function name(arg)
if (arg = '')
say 'Enter Lon1 Lat1 Lon2 Lat2'
pull cmdline
else
cmdline=arg
endif
lon1=subwrd(cmdline,1)
lat1=subwrd(cmdline,2)
lon2=subwrd(cmdline,3)
lat2=subwrd(cmdline,4)
'q w2xy ' lon1 ' ' lat1 ' '
cmdline=result
xlo=subwrd(cmdline,3)
ylo=subwrd(cmdline,6)
'q w2xy ' lon2 ' ' lat2 ' '
cmdline=result
xhi=subwrd(cmdline,3)
yhi=subwrd(cmdline,6)
'draw line ' xlo ' ' ylo ' ' xhi ' ' yhi ' '
********************
For 15E;45N to 60E;45N use like:
ga-> line_lat.gs 15 45 60 45
Colleen
From: gradsusr <gradsusr-bounces at gradsusr.org> on behalf of Steven Young <shy9 at earthlink.net>
Reply-To: GrADS Users Forum <gradsusr at gradsusr.org>
Date: Sunday, March 10, 2019 at 12:34 PM
To: "gradsusr at gradsusr.org" <gradsusr at gradsusr.org>
Subject: [gradsusr] Input locations and draw lines
I would like to input sets of Latitude, Longitude and a then draw a line from one set to another and repeat until I have run through my dataset. I can’t figure out how do do this. Does someone have a script that I can use?
Thanks
Steven Young
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190311/3bc96f12/attachment.html>
More information about the gradsusr
mailing list