<div dir="ltr">Geoff,<div><br></div><div>Here's a short sample from a script that plots city location markers and id's...</div><div><br></div><div>#Locations list:</div><div><div>loc.1='BOS -71.011 42.361';#locid lon lat</div><div>loc.2='PHL -75.23 39.868'</div><div>loc.3='ATL -84.427 33.64'</div><div>loc.4='ORD -87.914 41.986'</div><div>loc.5='DFW -97.019 32.898'</div></div><div>n=1;nlocs=5</div><div>while(n<=nlocs)</div><div> locid=subwrd(loc.n,1);lo=subwrd(loc.n,2);la=subwrd(loc.n,3)</div><div> 'q w2xy 'lo' 'la</div><div> px=subwrd(result,3);py=subwrd(result,6)</div><div> 'set line 1 1 1';#black mark when printim white<br></div><div> 'draw mark 3 'px' 'py' 0.04';#closed circle/dot</div><div> 'set strsiz 0.05';'set string 1 l 2';#black font when printim white</div><div> 'draw string 'px+0.05' 'py+0.05' 'locid;#offset locid string from marker</div><div> n=n+1<br></div><div>endwhile</div><div><br></div><div>You would do above after displaying an appropriate variable on your desired projection. You could also read in the location data from a text file, e.g., one city per loop iteration:</div><div><br></div><div>while(....</div><div> data=read(citylist.txt)</div><div> locdata=sublin(data,2)</div><div> locid=subwrd(locdata,1);lo=subwrd(locdata,2);la=subwrd(locdata,3)</div><div> 'q w2xy 'lo' 'la</div><div>etc.</div><div><br></div><div>Hope this helps...</div><div>Stephen McMillan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 20, 2016 at 5:01 PM, Geoff Fox <span dir="ltr"><<a href="mailto:geoff.fox@gmail.com" target="_blank">geoff.fox@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">I am looking for advice concerning GrADS maps with city names added. I've seen a number of solutions which require you to create a potential city list to plot. I'd like to use an existing city name database so I can enable this technique on-the-fly with different map projections/domains.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Is there anyone who's done this and willing to share your technique? </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small">Geoff Fox </div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>