plot a marker on map by lat and lon coordinates
Colleen Mikovitz
j.c.mikovitz at NASA.GOV
Tue Aug 18 07:36:38 EDT 2009
I have a script that will do that for you.
I call it mark_lat.gs
To use:
ga-> mark_lat 12 44 3 0.2
********************
function name(arg)
if (arg = '')
say 'Enter Lon Lat Marktype size'
pull cmdline
else
cmdline=arg
endif
lon=subwrd(cmdline,1)
lat=subwrd(cmdline,2)
markin=subwrd(cmdline,3)
sizein=subwrd(cmdline,4)
if (markin = '')
markin=3
endif
if (sizein = '')
sizein=0.2
endif
'q w2xy ' lon ' ' lat ' '
cmdline=result
xlo=subwrd(cmdline,3)
ylo=subwrd(cmdline,6)
'draw mark ' markin ' ' xlo ' ' ylo ' ' sizein ' '
**************************
On Aug 18, 2009, at 4:59 AM, Bernd Becker wrote:
> Hello,
>
> how can I quickly plot a marker
> on map, positioned by latitude and longitude?
>
> I get confused by the different plot coordinate systems and the
> conversions between them.
>
> lat=44
> lon=12
>
> d temp
> draw mark 3 lat lon 2
>
> --
> Bernd Becker The Monthly Outlook
> Met Office FitzRoy Road Exeter Devon EX1 3PB United Kingdom
> Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050
> E-mail:bernd.becker at metoffice.com - http://www.metoffice.com
More information about the gradsusr
mailing list