[ncl-talk] Question about adding location dots

Rashed Mahmood rashidcomsis at gmail.com
Thu Dec 29 13:17:47 MST 2016


please always keep NCL-talk in loop so that people know the problem is
solved, since there could be others trying to help and it would help save
time...

On Thu, Dec 29, 2016 at 12:16 AM, Barry Lynn <barry.h.lynn at gmail.com> wrote:

> Hi Rashed:
>
> Many thanks.
>
> Barry
>
> On Thu, Dec 29, 2016 at 9:39 AM, Rashed Mahmood <rashidcomsis at gmail.com>
> wrote:
>
>> 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
>>
>>
>
>
> --
> Barry H. Lynn, Ph.D
> Senior Lecturer,
> The Institute of the Earth Science,
> The Hebrew University of Jerusalem,
> Givat Ram, Jerusalem 91904, Israel
> Tel: 972 547 231 170
> Fax: (972)-25662581
>
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108 <(914)%20432-3108>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161229/703b1228/attachment.html 


More information about the ncl-talk mailing list