[ncl-talk] Question about adding location dots
Barry Lynn
barry.h.lynn at gmail.com
Sat Dec 31 21:23:58 MST 2016
And here is the wrf_times.file I made.
There is a simpler way to list the times (without the intervening lines),
but I wasn't sure how to read it without.
On Sun, Jan 1, 2017 at 6:22 AM, Barry Lynn <barry.h.lynn at gmail.com> wrote:
> Here is the code that maps wind chill (from a WRF ensemble), and adds city
> labels.
>
> You can contact me if you have questions.
>
> Thank you
>
> Barry
>
> On Thu, Dec 29, 2016 at 10:17 PM, Rashed Mahmood <rashidcomsis at gmail.com>
> wrote:
>
>> 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>
>>>
>>
>>
>
>
> --
> 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>
>
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170101/7f4c84b8/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrf_gsn_loop_w_chill_ave_prob.ncl
Type: application/octet-stream
Size: 20103 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170101/7f4c84b8/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrf_times.file
Type: application/octet-stream
Size: 1456 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170101/7f4c84b8/attachment-0001.obj
More information about the ncl-talk
mailing list