[ncl-talk] Question about adding location dots
Rashed Mahmood
rashidcomsis at gmail.com
Thu Dec 29 00:39:47 MST 2016
Hi Barry,
I think you can try the following changes (note ncities need be defined
before these lines):
markid = new((/4,ncities/),graphic)
textid = new((/4,ncities/),graphic)
and in the loop:
do n = 0,3
markid(n,:) = gsn_add_polymarker(wks,plot(n),lon,lat,mkres)
textid(n,:) = gsn_add_text(wks,plot(n),cities,lon,lat,txres)
end do
A simplified version of your script that works is attached (just maps
without data):
HTH
Rashed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161228/ccc61d03/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_polymarks.ncl
Type: application/octet-stream
Size: 2642 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161228/ccc61d03/attachment.obj
More information about the ncl-talk
mailing list