<div dir="ltr">Hello Karin <div><br></div><div>Thank you for your help. </div><div>when i run the echo $NCARG_ROOT </div><div>i initially got '(base) sdm@sdm-ThinkPad-P50:'</div><div><br></div><div>then i saw something like i should run <span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px"> 'source activate </span><i style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px;margin:0px;padding:0px">ncl_stable' after every logout</i></div><div>when i run again echo $NCARG_ROOT </div><div>i got (ncl_stable) sdm@sdm-ThinkPad-P50: </div><div><br></div><div>now it works.</div><div>Thanks</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 15, 2020 at 8:00 PM <<a href="mailto:ncl-talk-request@ucar.edu">ncl-talk-request@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send ncl-talk mailing list submissions to<br>
        <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.edu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:ncl-talk-owner@ucar.edu" target="_blank">ncl-talk-owner@ucar.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of ncl-talk digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Disappearing Dots (Revisited) (Rashed Mahmood)<br>
   2. Re: Disappearing Dots (Revisited) (Adam Phillips)<br>
   3. Re: Disappearing Dots (Revisited) (Barry Lynn)<br>
   4. Re: Disappearing Dots (Revisited) (Barry Lynn)<br>
   5. Re: Disappearing Dots (Revisited) (Barry Lynn)<br>
   6. Re: Disappearing Dots (Revisited) (Barry Lynn)<br>
   7. Re: Disappearing Dots (Correction) (Barry Lynn)<br>
   8. error while running NCL and Shape file scripts (S. Y.)<br>
   9. Re: error while running NCL and Shape file scripts<br>
      (Karin Meier-Fleischer)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 14 Jan 2020 11:02:28 -0800<br>
From: Rashed Mahmood <<a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@gmail.com</a>><br>
To: Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Disappearing Dots (Revisited)<br>
Message-ID:<br>
        <CAOmfQPrXpFrmR-7v21uteDsv9xBT10z-uMgRtjS=<a href="mailto:W5Zkvjd_zg@mail.gmail.com" target="_blank">W5Zkvjd_zg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Barry,<br>
There is no BIG mystery in it after all!!<br>
<br>
The function was probably not designed to be used inside a loop, I have<br>
changed in the attached test_arrow.ncl file. A dummy test is also attached:<br>
There were three problematic lines( which would work outside the loop) but<br>
not inside:<br>
plt@arr = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
plt@arr1 = gsn_add_polyline(wks,plt,xpts1,ypts1,resp)<br>
plt@arr2 = gsn_add_polyline(wks,plt,xpts2,ypts2,resp)<br>
<br>
Note that the syntax "plt@arr"  would be fine for plotting individual plots<br>
separately however when used in loop this would need to be something<br>
different, below is what I changed in the attached test_arrow.ncl:<br>
<br>
plt@$unique_string("tmp")$ = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
plt@$unique_string("arr1")$ = gsn_add_polyline(wks,plt,xpts1,ypts1,resp)<br>
plt@$unique_string("abc")$ = gsn_add_polyline(wks,plt,xpts2,ypts2,resp)<br>
<br>
Hope that helps.<br>
Rashed<br>
<br>
<br>
<br>
<br>
<br>
On Tue, Jan 14, 2020 at 8:45 AM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br>
<br>
> Hi:<br>
><br>
> I have a bit of a mystery:<br>
><br>
> I have a loop where I am calling gsn_add_polymarker. I created an array<br>
> (dum_b(n_calls)) so I could plot the markers within the loop.<br>
><br>
> dum_b(i) = gsn_add_polymarker(wks,plot,lon_old(i),lat_old(i),mkres)<br>
><br>
><br>
> However, when I call:<br>
><br>
><br>
> array(i) = arrow(wks,plot,xpts,ypts,mkres)<br>
><br>
><br>
> I am not able to make the lines with the arrows (more than once).<br>
><br>
><br>
> warning:TransformPostDraw: tfPolyDrawList element 1 is invalid<br>
><br>
><br>
> Yet, if I call the same with<br>
><br>
><br>
> arr_0 = arrow...<br>
><br>
><br>
> arr_1 = arrow...<br>
><br>
><br>
> up to n_calls, I have no problem.<br>
><br>
><br>
> If someone can solve the mystery, I would be curious to find out the<br>
> reason for this "strange" behavior.<br>
><br>
><br>
> <a href="https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl</a><br>
><br>
> On Mon, Jul 8, 2019 at 12:13 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br>
><br>
>> Hi:<br>
>><br>
>> That was absolutely the correct solution -- thank you.<br>
>><br>
>> Are you aware of a way to increase the spacing between maps?  I am using<br>
>> wrf resources so this is very obtuse.<br>
>><br>
>> Barry<br>
>><br>
>> On Mon, Jul 8, 2019 at 10:44 AM Rashed Mahmood <<a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@gmail.com</a>><br>
>> wrote:<br>
>><br>
>>> Hi Barry,<br>
>>> A quick look suggests that it may be related to not specifying unique<br>
>>> ids for markid and textid:<br>
>>>     markid = gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>>     textid = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>><br>
>>> Next lines should have,<br>
>>> markid*1 *= gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>> textid*1* = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>><br>
>>> and so on...<br>
>>><br>
>>> Cheers<br>
>>><br>
>>> Rashed<br>
>>><br>
>>><br>
>>> On Mon, Jul 8, 2019 at 7:51 AM Barry Lynn via ncl-talk <<br>
>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
>>><br>
>>>> Hello:<br>
>>>><br>
>>>> For some reason, the markid only appears on the last graph, but not the<br>
>>>> first two.  Yet, the "call" to each is the same.  I had this problem in<br>
>>>> other programs I wrote.<br>
>>>><br>
>>>> If you have a suggestion, thank you,<br>
>>>><br>
>>>> Barry<br>
>>>> --<br>
>>>> Barry H. Lynn, Ph.D<br>
>>>> Senior Associate Scientist, Lecturer,<br>
>>>> The Institute of the Earth Science,<br>
>>>> The Hebrew University of Jerusalem,<br>
>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>> Tel: 972 547 231 170<br>
>>>> Fax: (972)-25662581<br>
>>>><br>
>>>> C.E.O, Weather It Is, LTD<br>
>>>> Weather and Climate Focus<br>
>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>> Jerusalem, Israel<br>
>>>> Local: 02 930 9525<br>
>>>> Cell: 054 7 231 170<br>
>>>> Int-IS: x972 2 930 9525<br>
>>>><br>
>>>> _______________________________________________<br>
>>>> ncl-talk mailing list<br>
>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>>>> List instructions, subscriber options, unsubscribe:<br>
>>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>>><br>
>>><br>
>><br>
>> --<br>
>> Barry H. Lynn, Ph.D<br>
>> Senior Associate Scientist, Lecturer,<br>
>> The Institute of the Earth Science,<br>
>> The Hebrew University of Jerusalem,<br>
>> Givat Ram, Jerusalem 91904, Israel<br>
>> Tel: 972 547 231 170<br>
>> Fax: (972)-25662581<br>
>><br>
>> C.E.O, Weather It Is, LTD<br>
>> Weather and Climate Focus<br>
>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>> Jerusalem, Israel<br>
>> Local: 02 930 9525<br>
>> Cell: 054 7 231 170<br>
>> Int-IS: x972 2 930 9525<br>
>><br>
>><br>
><br>
> --<br>
> Barry H. Lynn, Ph.D<br>
> Senior Associate Scientist, Lecturer,<br>
> The Institute of the Earth Science,<br>
> The Hebrew University of Jerusalem,<br>
> Givat Ram, Jerusalem 91904, Israel<br>
> Tel: 972 547 231 170<br>
> Fax: (972)-25662581<br>
><br>
> C.E.O, Weather It Is, LTD<br>
> Weather and Climate Focus<br>
> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
> Jerusalem, Israel<br>
> Local: 02 930 9525<br>
> Cell: 054 7 231 170<br>
> Int-IS: x972 2 930 9525<br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200114/d27b2d4d/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200114/d27b2d4d/attachment-0001.html</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: test_arrow.ncl<br>
Type: application/octet-stream<br>
Size: 2351 bytes<br>
Desc: not available<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200114/d27b2d4d/attachment-0001.obj" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200114/d27b2d4d/attachment-0001.obj</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: dum_arrow.pdf<br>
Type: application/pdf<br>
Size: 64408 bytes<br>
Desc: not available<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200114/d27b2d4d/attachment-0001.pdf" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200114/d27b2d4d/attachment-0001.pdf</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 14 Jan 2020 12:05:59 -0700<br>
From: Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>><br>
To: Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Disappearing Dots (Revisited)<br>
Message-ID:<br>
        <CACvWuqABWfyuAFUZJ=<a href="mailto:iH%2BasFe%2BV0-XpitJ0x9wqqSHdqvRqumQ@mail.gmail.com" target="_blank">iH+asFe+V0-XpitJ0x9wqqSHdqvRqumQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Barry,<br>
If I had to guess, it is that the arrow function writes the<br>
gsn_add_polyline output as attributes named arr,arr1, and arr2 to the plt<br>
array that is to be returned by the function. If you call the function<br>
multiple times and pass all the graphical output to the same logical array<br>
named "array", each time you call arrow, array@arr, array@arr1 and<br>
array@arr2 will get overwritten.  To get around this, you should alter the<br>
arrow function to use the unique_string function.<br>
<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/unique_string.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/unique_string.shtml</a><br>
<br>
For an example of how to do this, see polymarker example #18:<br>
<a href="https://www.ncl.ucar.edu/Applications/polyg.shtml#ex18" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Applications/polyg.shtml#ex18</a><br>
<br>
For example, change this:<br>
plt@arr = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
to this:<br>
str = unique_string("arr")<br>
plt@$str$ = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
<br>
and do the same for the other two calls to gsn_add_polyline.<br>
Hope that helps!<br>
Adam<br>
<br>
<br>
On Tue, Jan 14, 2020 at 9:45 AM Barry Lynn via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
wrote:<br>
<br>
> Hi:<br>
><br>
> I have a bit of a mystery:<br>
><br>
> I have a loop where I am calling gsn_add_polymarker. I created an array<br>
> (dum_b(n_calls)) so I could plot the markers within the loop.<br>
><br>
> dum_b(i) = gsn_add_polymarker(wks,plot,lon_old(i),lat_old(i),mkres)<br>
><br>
><br>
> However, when I call:<br>
><br>
><br>
> array(i) = arrow(wks,plot,xpts,ypts,mkres)<br>
><br>
><br>
> I am not able to make the lines with the arrows (more than once).<br>
><br>
><br>
> warning:TransformPostDraw: tfPolyDrawList element 1 is invalid<br>
><br>
><br>
> Yet, if I call the same with<br>
><br>
><br>
> arr_0 = arrow...<br>
><br>
><br>
> arr_1 = arrow...<br>
><br>
><br>
> up to n_calls, I have no problem.<br>
><br>
><br>
> If someone can solve the mystery, I would be curious to find out the<br>
> reason for this "strange" behavior.<br>
><br>
><br>
> <a href="https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl</a><br>
><br>
> On Mon, Jul 8, 2019 at 12:13 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br>
><br>
>> Hi:<br>
>><br>
>> That was absolutely the correct solution -- thank you.<br>
>><br>
>> Are you aware of a way to increase the spacing between maps?  I am using<br>
>> wrf resources so this is very obtuse.<br>
>><br>
>> Barry<br>
>><br>
>> On Mon, Jul 8, 2019 at 10:44 AM Rashed Mahmood <<a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@gmail.com</a>><br>
>> wrote:<br>
>><br>
>>> Hi Barry,<br>
>>> A quick look suggests that it may be related to not specifying unique<br>
>>> ids for markid and textid:<br>
>>>     markid = gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>>     textid = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>><br>
>>> Next lines should have,<br>
>>> markid*1 *= gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>> textid*1* = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>><br>
>>> and so on...<br>
>>><br>
>>> Cheers<br>
>>><br>
>>> Rashed<br>
>>><br>
>>><br>
>>> On Mon, Jul 8, 2019 at 7:51 AM Barry Lynn via ncl-talk <<br>
>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
>>><br>
>>>> Hello:<br>
>>>><br>
>>>> For some reason, the markid only appears on the last graph, but not the<br>
>>>> first two.  Yet, the "call" to each is the same.  I had this problem in<br>
>>>> other programs I wrote.<br>
>>>><br>
>>>> If you have a suggestion, thank you,<br>
>>>><br>
>>>> Barry<br>
>>>> --<br>
>>>> Barry H. Lynn, Ph.D<br>
>>>> Senior Associate Scientist, Lecturer,<br>
>>>> The Institute of the Earth Science,<br>
>>>> The Hebrew University of Jerusalem,<br>
>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>> Tel: 972 547 231 170<br>
>>>> Fax: (972)-25662581<br>
>>>><br>
>>>> C.E.O, Weather It Is, LTD<br>
>>>> Weather and Climate Focus<br>
>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>> Jerusalem, Israel<br>
>>>> Local: 02 930 9525<br>
>>>> Cell: 054 7 231 170<br>
>>>> Int-IS: x972 2 930 9525<br>
>>>><br>
>>>> _______________________________________________<br>
>>>> ncl-talk mailing list<br>
>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>>>> List instructions, subscriber options, unsubscribe:<br>
>>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>>><br>
>>><br>
>><br>
>> --<br>
>> Barry H. Lynn, Ph.D<br>
>> Senior Associate Scientist, Lecturer,<br>
>> The Institute of the Earth Science,<br>
>> The Hebrew University of Jerusalem,<br>
>> Givat Ram, Jerusalem 91904, Israel<br>
>> Tel: 972 547 231 170<br>
>> Fax: (972)-25662581<br>
>><br>
>> C.E.O, Weather It Is, LTD<br>
>> Weather and Climate Focus<br>
>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>> Jerusalem, Israel<br>
>> Local: 02 930 9525<br>
>> Cell: 054 7 231 170<br>
>> Int-IS: x972 2 930 9525<br>
>><br>
>><br>
><br>
> --<br>
> Barry H. Lynn, Ph.D<br>
> Senior Associate Scientist, Lecturer,<br>
> The Institute of the Earth Science,<br>
> The Hebrew University of Jerusalem,<br>
> Givat Ram, Jerusalem 91904, Israel<br>
> Tel: 972 547 231 170<br>
> Fax: (972)-25662581<br>
><br>
> C.E.O, Weather It Is, LTD<br>
> Weather and Climate Focus<br>
> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
> Jerusalem, Israel<br>
> Local: 02 930 9525<br>
> Cell: 054 7 231 170<br>
> Int-IS: x972 2 930 9525<br>
><br>
> _______________________________________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
<br>
<br>
-- <br>
Adam Phillips<br>
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR<br>
<a href="http://www.cgd.ucar.edu/staff/asphilli/" rel="noreferrer" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   303-497-1726<br>
<br>
<<a href="http://www.cgd.ucar.edu/staff/asphilli" rel="noreferrer" target="_blank">http://www.cgd.ucar.edu/staff/asphilli</a>><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200114/4c1fe7bf/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200114/4c1fe7bf/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 14 Jan 2020 21:47:15 +0200<br>
From: Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
To: Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>><br>
Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Disappearing Dots (Revisited)<br>
Message-ID:<br>
        <CAN7Bv26L4F495eTaUnegXEZQZa3z8AKjBTik1Ne6YDz308s=<a href="mailto:jw@mail.gmail.com" target="_blank">jw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Adam, Rasheed.<br>
<br>
In both cases, I call the function within a loop.  The only difference is<br>
whether I refer to array(i) or arr_0, arr_1... n.<br>
<br>
In any case, I will try Rashed's version.<br>
<br>
Barry<br>
<br>
On Tue, Jan 14, 2020 at 9:06 PM Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>> wrote:<br>
<br>
> Hi Barry,<br>
> If I had to guess, it is that the arrow function writes the<br>
> gsn_add_polyline output as attributes named arr,arr1, and arr2 to the plt<br>
> array that is to be returned by the function. If you call the function<br>
> multiple times and pass all the graphical output to the same logical array<br>
> named "array", each time you call arrow, array@arr, array@arr1 and<br>
> array@arr2 will get overwritten.  To get around this, you should alter<br>
> the arrow function to use the unique_string function.<br>
> <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/unique_string.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/unique_string.shtml</a><br>
><br>
> For an example of how to do this, see polymarker example #18:<br>
> <a href="https://www.ncl.ucar.edu/Applications/polyg.shtml#ex18" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Applications/polyg.shtml#ex18</a><br>
><br>
> For example, change this:<br>
> plt@arr = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
> to this:<br>
> str = unique_string("arr")<br>
> plt@$str$ = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
><br>
> and do the same for the other two calls to gsn_add_polyline.<br>
> Hope that helps!<br>
> Adam<br>
><br>
><br>
> On Tue, Jan 14, 2020 at 9:45 AM Barry Lynn via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
> wrote:<br>
><br>
>> Hi:<br>
>><br>
>> I have a bit of a mystery:<br>
>><br>
>> I have a loop where I am calling gsn_add_polymarker. I created an array<br>
>> (dum_b(n_calls)) so I could plot the markers within the loop.<br>
>><br>
>> dum_b(i) = gsn_add_polymarker(wks,plot,lon_old(i),lat_old(i),mkres)<br>
>><br>
>><br>
>> However, when I call:<br>
>><br>
>><br>
>> array(i) = arrow(wks,plot,xpts,ypts,mkres)<br>
>><br>
>><br>
>> I am not able to make the lines with the arrows (more than once).<br>
>><br>
>><br>
>> warning:TransformPostDraw: tfPolyDrawList element 1 is invalid<br>
>><br>
>><br>
>> Yet, if I call the same with<br>
>><br>
>><br>
>> arr_0 = arrow...<br>
>><br>
>><br>
>> arr_1 = arrow...<br>
>><br>
>><br>
>> up to n_calls, I have no problem.<br>
>><br>
>><br>
>> If someone can solve the mystery, I would be curious to find out the<br>
>> reason for this "strange" behavior.<br>
>><br>
>><br>
>> <a href="https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl</a><br>
>><br>
>> On Mon, Jul 8, 2019 at 12:13 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
>> wrote:<br>
>><br>
>>> Hi:<br>
>>><br>
>>> That was absolutely the correct solution -- thank you.<br>
>>><br>
>>> Are you aware of a way to increase the spacing between maps?  I am using<br>
>>> wrf resources so this is very obtuse.<br>
>>><br>
>>> Barry<br>
>>><br>
>>> On Mon, Jul 8, 2019 at 10:44 AM Rashed Mahmood <<a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@gmail.com</a>><br>
>>> wrote:<br>
>>><br>
>>>> Hi Barry,<br>
>>>> A quick look suggests that it may be related to not specifying unique<br>
>>>> ids for markid and textid:<br>
>>>>     markid = gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>>>     textid = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>>><br>
>>>> Next lines should have,<br>
>>>> markid*1 *= gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>>> textid*1* = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>>><br>
>>>> and so on...<br>
>>>><br>
>>>> Cheers<br>
>>>><br>
>>>> Rashed<br>
>>>><br>
>>>><br>
>>>> On Mon, Jul 8, 2019 at 7:51 AM Barry Lynn via ncl-talk <<br>
>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
>>>><br>
>>>>> Hello:<br>
>>>>><br>
>>>>> For some reason, the markid only appears on the last graph, but not<br>
>>>>> the first two.  Yet, the "call" to each is the same.  I had this problem in<br>
>>>>> other programs I wrote.<br>
>>>>><br>
>>>>> If you have a suggestion, thank you,<br>
>>>>><br>
>>>>> Barry<br>
>>>>> --<br>
>>>>> Barry H. Lynn, Ph.D<br>
>>>>> Senior Associate Scientist, Lecturer,<br>
>>>>> The Institute of the Earth Science,<br>
>>>>> The Hebrew University of Jerusalem,<br>
>>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>>> Tel: 972 547 231 170<br>
>>>>> Fax: (972)-25662581<br>
>>>>><br>
>>>>> C.E.O, Weather It Is, LTD<br>
>>>>> Weather and Climate Focus<br>
>>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>>> Jerusalem, Israel<br>
>>>>> Local: 02 930 9525<br>
>>>>> Cell: 054 7 231 170<br>
>>>>> Int-IS: x972 2 930 9525<br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> ncl-talk mailing list<br>
>>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>>>>> List instructions, subscriber options, unsubscribe:<br>
>>>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>>>><br>
>>>><br>
>>><br>
>>> --<br>
>>> Barry H. Lynn, Ph.D<br>
>>> Senior Associate Scientist, Lecturer,<br>
>>> The Institute of the Earth Science,<br>
>>> The Hebrew University of Jerusalem,<br>
>>> Givat Ram, Jerusalem 91904, Israel<br>
>>> Tel: 972 547 231 170<br>
>>> Fax: (972)-25662581<br>
>>><br>
>>> C.E.O, Weather It Is, LTD<br>
>>> Weather and Climate Focus<br>
>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>> Jerusalem, Israel<br>
>>> Local: 02 930 9525<br>
>>> Cell: 054 7 231 170<br>
>>> Int-IS: x972 2 930 9525<br>
>>><br>
>>><br>
>><br>
>> --<br>
>> Barry H. Lynn, Ph.D<br>
>> Senior Associate Scientist, Lecturer,<br>
>> The Institute of the Earth Science,<br>
>> The Hebrew University of Jerusalem,<br>
>> Givat Ram, Jerusalem 91904, Israel<br>
>> Tel: 972 547 231 170<br>
>> Fax: (972)-25662581<br>
>><br>
>> C.E.O, Weather It Is, LTD<br>
>> Weather and Climate Focus<br>
>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>> Jerusalem, Israel<br>
>> Local: 02 930 9525<br>
>> Cell: 054 7 231 170<br>
>> Int-IS: x972 2 930 9525<br>
>><br>
>> _______________________________________________<br>
>> ncl-talk mailing list<br>
>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>> List instructions, subscriber options, unsubscribe:<br>
>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
><br>
><br>
> --<br>
> Adam Phillips<br>
> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR<br>
> <a href="http://www.cgd.ucar.edu/staff/asphilli/" rel="noreferrer" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   303-497-1726<br>
><br>
> <<a href="http://www.cgd.ucar.edu/staff/asphilli" rel="noreferrer" target="_blank">http://www.cgd.ucar.edu/staff/asphilli</a>><br>
><br>
<br>
<br>
-- <br>
Barry H. Lynn, Ph.D<br>
Senior Associate Scientist, Lecturer,<br>
The Institute of the Earth Science,<br>
The Hebrew University of Jerusalem,<br>
Givat Ram, Jerusalem 91904, Israel<br>
Tel: 972 547 231 170<br>
Fax: (972)-25662581<br>
<br>
C.E.O, Weather It Is, LTD<br>
Weather and Climate Focus<br>
<a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
Jerusalem, Israel<br>
Local: 02 930 9525<br>
Cell: 054 7 231 170<br>
Int-IS: x972 2 930 9525<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200114/32ef0e44/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200114/32ef0e44/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 14 Jan 2020 21:48:25 +0200<br>
From: Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
To: Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>><br>
Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Disappearing Dots (Revisited)<br>
Message-ID:<br>
        <CAN7Bv27p1kHmaBu973td=<a href="mailto:5CKt9-%2BGYsgP87SfeNJh4tNBA4yCg@mail.gmail.com" target="_blank">5CKt9-+GYsgP87SfeNJh4tNBA4yCg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Rashed seems to demonstrate that his version works, so I will probably find<br>
the same.  I'll update later.<br>
<br>
Thank you for the help.<br>
<br>
Barry<br>
<br>
On Tue, Jan 14, 2020 at 9:47 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br>
<br>
> Hi Adam, Rasheed.<br>
><br>
> In both cases, I call the function within a loop.  The only difference is<br>
> whether I refer to array(i) or arr_0, arr_1... n.<br>
><br>
> In any case, I will try Rashed's version.<br>
><br>
> Barry<br>
><br>
> On Tue, Jan 14, 2020 at 9:06 PM Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>> wrote:<br>
><br>
>> Hi Barry,<br>
>> If I had to guess, it is that the arrow function writes the<br>
>> gsn_add_polyline output as attributes named arr,arr1, and arr2 to the plt<br>
>> array that is to be returned by the function. If you call the function<br>
>> multiple times and pass all the graphical output to the same logical array<br>
>> named "array", each time you call arrow, array@arr, array@arr1 and<br>
>> array@arr2 will get overwritten.  To get around this, you should alter<br>
>> the arrow function to use the unique_string function.<br>
>> <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/unique_string.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/unique_string.shtml</a><br>
>><br>
>> For an example of how to do this, see polymarker example #18:<br>
>> <a href="https://www.ncl.ucar.edu/Applications/polyg.shtml#ex18" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Applications/polyg.shtml#ex18</a><br>
>><br>
>> For example, change this:<br>
>> plt@arr = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
>> to this:<br>
>> str = unique_string("arr")<br>
>> plt@$str$ = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
>><br>
>> and do the same for the other two calls to gsn_add_polyline.<br>
>> Hope that helps!<br>
>> Adam<br>
>><br>
>><br>
>> On Tue, Jan 14, 2020 at 9:45 AM Barry Lynn via ncl-talk <<br>
>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
>><br>
>>> Hi:<br>
>>><br>
>>> I have a bit of a mystery:<br>
>>><br>
>>> I have a loop where I am calling gsn_add_polymarker. I created an array<br>
>>> (dum_b(n_calls)) so I could plot the markers within the loop.<br>
>>><br>
>>> dum_b(i) = gsn_add_polymarker(wks,plot,lon_old(i),lat_old(i),mkres)<br>
>>><br>
>>><br>
>>> However, when I call:<br>
>>><br>
>>><br>
>>> array(i) = arrow(wks,plot,xpts,ypts,mkres)<br>
>>><br>
>>><br>
>>> I am not able to make the lines with the arrows (more than once).<br>
>>><br>
>>><br>
>>> warning:TransformPostDraw: tfPolyDrawList element 1 is invalid<br>
>>><br>
>>><br>
>>> Yet, if I call the same with<br>
>>><br>
>>><br>
>>> arr_0 = arrow...<br>
>>><br>
>>><br>
>>> arr_1 = arrow...<br>
>>><br>
>>><br>
>>> up to n_calls, I have no problem.<br>
>>><br>
>>><br>
>>> If someone can solve the mystery, I would be curious to find out the<br>
>>> reason for this "strange" behavior.<br>
>>><br>
>>><br>
>>> <a href="https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl</a><br>
>>><br>
>>> On Mon, Jul 8, 2019 at 12:13 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
>>> wrote:<br>
>>><br>
>>>> Hi:<br>
>>>><br>
>>>> That was absolutely the correct solution -- thank you.<br>
>>>><br>
>>>> Are you aware of a way to increase the spacing between maps?  I am<br>
>>>> using wrf resources so this is very obtuse.<br>
>>>><br>
>>>> Barry<br>
>>>><br>
>>>> On Mon, Jul 8, 2019 at 10:44 AM Rashed Mahmood <<a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@gmail.com</a>><br>
>>>> wrote:<br>
>>>><br>
>>>>> Hi Barry,<br>
>>>>> A quick look suggests that it may be related to not specifying unique<br>
>>>>> ids for markid and textid:<br>
>>>>>     markid = gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>>>>     textid = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>>>><br>
>>>>> Next lines should have,<br>
>>>>> markid*1 *= gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>>>> textid*1* = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>>>><br>
>>>>> and so on...<br>
>>>>><br>
>>>>> Cheers<br>
>>>>><br>
>>>>> Rashed<br>
>>>>><br>
>>>>><br>
>>>>> On Mon, Jul 8, 2019 at 7:51 AM Barry Lynn via ncl-talk <<br>
>>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
>>>>><br>
>>>>>> Hello:<br>
>>>>>><br>
>>>>>> For some reason, the markid only appears on the last graph, but not<br>
>>>>>> the first two.  Yet, the "call" to each is the same.  I had this problem in<br>
>>>>>> other programs I wrote.<br>
>>>>>><br>
>>>>>> If you have a suggestion, thank you,<br>
>>>>>><br>
>>>>>> Barry<br>
>>>>>> --<br>
>>>>>> Barry H. Lynn, Ph.D<br>
>>>>>> Senior Associate Scientist, Lecturer,<br>
>>>>>> The Institute of the Earth Science,<br>
>>>>>> The Hebrew University of Jerusalem,<br>
>>>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>>>> Tel: 972 547 231 170<br>
>>>>>> Fax: (972)-25662581<br>
>>>>>><br>
>>>>>> C.E.O, Weather It Is, LTD<br>
>>>>>> Weather and Climate Focus<br>
>>>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>>>> Jerusalem, Israel<br>
>>>>>> Local: 02 930 9525<br>
>>>>>> Cell: 054 7 231 170<br>
>>>>>> Int-IS: x972 2 930 9525<br>
>>>>>><br>
>>>>>> _______________________________________________<br>
>>>>>> ncl-talk mailing list<br>
>>>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>>>>>> List instructions, subscriber options, unsubscribe:<br>
>>>>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>>>>><br>
>>>>><br>
>>>><br>
>>>> --<br>
>>>> Barry H. Lynn, Ph.D<br>
>>>> Senior Associate Scientist, Lecturer,<br>
>>>> The Institute of the Earth Science,<br>
>>>> The Hebrew University of Jerusalem,<br>
>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>> Tel: 972 547 231 170<br>
>>>> Fax: (972)-25662581<br>
>>>><br>
>>>> C.E.O, Weather It Is, LTD<br>
>>>> Weather and Climate Focus<br>
>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>> Jerusalem, Israel<br>
>>>> Local: 02 930 9525<br>
>>>> Cell: 054 7 231 170<br>
>>>> Int-IS: x972 2 930 9525<br>
>>>><br>
>>>><br>
>>><br>
>>> --<br>
>>> Barry H. Lynn, Ph.D<br>
>>> Senior Associate Scientist, Lecturer,<br>
>>> The Institute of the Earth Science,<br>
>>> The Hebrew University of Jerusalem,<br>
>>> Givat Ram, Jerusalem 91904, Israel<br>
>>> Tel: 972 547 231 170<br>
>>> Fax: (972)-25662581<br>
>>><br>
>>> C.E.O, Weather It Is, LTD<br>
>>> Weather and Climate Focus<br>
>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>> Jerusalem, Israel<br>
>>> Local: 02 930 9525<br>
>>> Cell: 054 7 231 170<br>
>>> Int-IS: x972 2 930 9525<br>
>>><br>
>>> _______________________________________________<br>
>>> ncl-talk mailing list<br>
>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>>> List instructions, subscriber options, unsubscribe:<br>
>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> Adam Phillips<br>
>> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR<br>
>> <a href="http://www.cgd.ucar.edu/staff/asphilli/" rel="noreferrer" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   303-497-1726<br>
>><br>
>> <<a href="http://www.cgd.ucar.edu/staff/asphilli" rel="noreferrer" target="_blank">http://www.cgd.ucar.edu/staff/asphilli</a>><br>
>><br>
><br>
><br>
> --<br>
> Barry H. Lynn, Ph.D<br>
> Senior Associate Scientist, Lecturer,<br>
> The Institute of the Earth Science,<br>
> The Hebrew University of Jerusalem,<br>
> Givat Ram, Jerusalem 91904, Israel<br>
> Tel: 972 547 231 170<br>
> Fax: (972)-25662581<br>
><br>
> C.E.O, Weather It Is, LTD<br>
> Weather and Climate Focus<br>
> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
> Jerusalem, Israel<br>
> Local: 02 930 9525<br>
> Cell: 054 7 231 170<br>
> Int-IS: x972 2 930 9525<br>
><br>
><br>
<br>
-- <br>
Barry H. Lynn, Ph.D<br>
Senior Associate Scientist, Lecturer,<br>
The Institute of the Earth Science,<br>
The Hebrew University of Jerusalem,<br>
Givat Ram, Jerusalem 91904, Israel<br>
Tel: 972 547 231 170<br>
Fax: (972)-25662581<br>
<br>
C.E.O, Weather It Is, LTD<br>
Weather and Climate Focus<br>
<a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
Jerusalem, Israel<br>
Local: 02 930 9525<br>
Cell: 054 7 231 170<br>
Int-IS: x972 2 930 9525<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200114/4e85dd3a/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200114/4e85dd3a/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Wed, 15 Jan 2020 05:25:01 +0200<br>
From: Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
To: Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>><br>
Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Disappearing Dots (Revisited)<br>
Message-ID:<br>
        <<a href="mailto:CAN7Bv27bnFk_HF8d1Hmv1H3Xi93KdDOuoY8km-wgEmu7QXLc3A@mail.gmail.com" target="_blank">CAN7Bv27bnFk_HF8d1Hmv1H3Xi93KdDOuoY8km-wgEmu7QXLc3A@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Rashed's fix worked fine.  I wonder why I am able to call the arrow routine<br>
with a single array name (not array(i)).<br>
<br>
Thanks again.<br>
<br>
On Tue, Jan 14, 2020 at 9:48 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br>
<br>
> Rashed seems to demonstrate that his version works, so I will probably<br>
> find the same.  I'll update later.<br>
><br>
> Thank you for the help.<br>
><br>
> Barry<br>
><br>
> On Tue, Jan 14, 2020 at 9:47 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br>
><br>
>> Hi Adam, Rasheed.<br>
>><br>
>> In both cases, I call the function within a loop.  The only difference is<br>
>> whether I refer to array(i) or arr_0, arr_1... n.<br>
>><br>
>> In any case, I will try Rashed's version.<br>
>><br>
>> Barry<br>
>><br>
>> On Tue, Jan 14, 2020 at 9:06 PM Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>> wrote:<br>
>><br>
>>> Hi Barry,<br>
>>> If I had to guess, it is that the arrow function writes the<br>
>>> gsn_add_polyline output as attributes named arr,arr1, and arr2 to the plt<br>
>>> array that is to be returned by the function. If you call the function<br>
>>> multiple times and pass all the graphical output to the same logical array<br>
>>> named "array", each time you call arrow, array@arr, array@arr1 and<br>
>>> array@arr2 will get overwritten.  To get around this, you should alter<br>
>>> the arrow function to use the unique_string function.<br>
>>> <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/unique_string.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/unique_string.shtml</a><br>
>>><br>
>>> For an example of how to do this, see polymarker example #18:<br>
>>> <a href="https://www.ncl.ucar.edu/Applications/polyg.shtml#ex18" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Applications/polyg.shtml#ex18</a><br>
>>><br>
>>> For example, change this:<br>
>>> plt@arr = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
>>> to this:<br>
>>> str = unique_string("arr")<br>
>>> plt@$str$ = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
>>><br>
>>> and do the same for the other two calls to gsn_add_polyline.<br>
>>> Hope that helps!<br>
>>> Adam<br>
>>><br>
>>><br>
>>> On Tue, Jan 14, 2020 at 9:45 AM Barry Lynn via ncl-talk <<br>
>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
>>><br>
>>>> Hi:<br>
>>>><br>
>>>> I have a bit of a mystery:<br>
>>>><br>
>>>> I have a loop where I am calling gsn_add_polymarker. I created an array<br>
>>>> (dum_b(n_calls)) so I could plot the markers within the loop.<br>
>>>><br>
>>>> dum_b(i) = gsn_add_polymarker(wks,plot,lon_old(i),lat_old(i),mkres)<br>
>>>><br>
>>>><br>
>>>> However, when I call:<br>
>>>><br>
>>>><br>
>>>> array(i) = arrow(wks,plot,xpts,ypts,mkres)<br>
>>>><br>
>>>><br>
>>>> I am not able to make the lines with the arrows (more than once).<br>
>>>><br>
>>>><br>
>>>> warning:TransformPostDraw: tfPolyDrawList element 1 is invalid<br>
>>>><br>
>>>><br>
>>>> Yet, if I call the same with<br>
>>>><br>
>>>><br>
>>>> arr_0 = arrow...<br>
>>>><br>
>>>><br>
>>>> arr_1 = arrow...<br>
>>>><br>
>>>><br>
>>>> up to n_calls, I have no problem.<br>
>>>><br>
>>>><br>
>>>> If someone can solve the mystery, I would be curious to find out the<br>
>>>> reason for this "strange" behavior.<br>
>>>><br>
>>>><br>
>>>> <a href="https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl</a><br>
>>>><br>
>>>> On Mon, Jul 8, 2019 at 12:13 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
>>>> wrote:<br>
>>>><br>
>>>>> Hi:<br>
>>>>><br>
>>>>> That was absolutely the correct solution -- thank you.<br>
>>>>><br>
>>>>> Are you aware of a way to increase the spacing between maps?  I am<br>
>>>>> using wrf resources so this is very obtuse.<br>
>>>>><br>
>>>>> Barry<br>
>>>>><br>
>>>>> On Mon, Jul 8, 2019 at 10:44 AM Rashed Mahmood <<a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@gmail.com</a>><br>
>>>>> wrote:<br>
>>>>><br>
>>>>>> Hi Barry,<br>
>>>>>> A quick look suggests that it may be related to not specifying unique<br>
>>>>>> ids for markid and textid:<br>
>>>>>>     markid = gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>>>>>     textid = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>>>>><br>
>>>>>> Next lines should have,<br>
>>>>>> markid*1 *= gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>>>>> textid*1* = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>>>>><br>
>>>>>> and so on...<br>
>>>>>><br>
>>>>>> Cheers<br>
>>>>>><br>
>>>>>> Rashed<br>
>>>>>><br>
>>>>>><br>
>>>>>> On Mon, Jul 8, 2019 at 7:51 AM Barry Lynn via ncl-talk <<br>
>>>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
>>>>>><br>
>>>>>>> Hello:<br>
>>>>>>><br>
>>>>>>> For some reason, the markid only appears on the last graph, but not<br>
>>>>>>> the first two.  Yet, the "call" to each is the same.  I had this problem in<br>
>>>>>>> other programs I wrote.<br>
>>>>>>><br>
>>>>>>> If you have a suggestion, thank you,<br>
>>>>>>><br>
>>>>>>> Barry<br>
>>>>>>> --<br>
>>>>>>> Barry H. Lynn, Ph.D<br>
>>>>>>> Senior Associate Scientist, Lecturer,<br>
>>>>>>> The Institute of the Earth Science,<br>
>>>>>>> The Hebrew University of Jerusalem,<br>
>>>>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>>>>> Tel: 972 547 231 170<br>
>>>>>>> Fax: (972)-25662581<br>
>>>>>>><br>
>>>>>>> C.E.O, Weather It Is, LTD<br>
>>>>>>> Weather and Climate Focus<br>
>>>>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>>>>> Jerusalem, Israel<br>
>>>>>>> Local: 02 930 9525<br>
>>>>>>> Cell: 054 7 231 170<br>
>>>>>>> Int-IS: x972 2 930 9525<br>
>>>>>>><br>
>>>>>>> _______________________________________________<br>
>>>>>>> ncl-talk mailing list<br>
>>>>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>>>>>>> List instructions, subscriber options, unsubscribe:<br>
>>>>>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>>>>>><br>
>>>>>><br>
>>>>><br>
>>>>> --<br>
>>>>> Barry H. Lynn, Ph.D<br>
>>>>> Senior Associate Scientist, Lecturer,<br>
>>>>> The Institute of the Earth Science,<br>
>>>>> The Hebrew University of Jerusalem,<br>
>>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>>> Tel: 972 547 231 170<br>
>>>>> Fax: (972)-25662581<br>
>>>>><br>
>>>>> C.E.O, Weather It Is, LTD<br>
>>>>> Weather and Climate Focus<br>
>>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>>> Jerusalem, Israel<br>
>>>>> Local: 02 930 9525<br>
>>>>> Cell: 054 7 231 170<br>
>>>>> Int-IS: x972 2 930 9525<br>
>>>>><br>
>>>>><br>
>>>><br>
>>>> --<br>
>>>> Barry H. Lynn, Ph.D<br>
>>>> Senior Associate Scientist, Lecturer,<br>
>>>> The Institute of the Earth Science,<br>
>>>> The Hebrew University of Jerusalem,<br>
>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>> Tel: 972 547 231 170<br>
>>>> Fax: (972)-25662581<br>
>>>><br>
>>>> C.E.O, Weather It Is, LTD<br>
>>>> Weather and Climate Focus<br>
>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>> Jerusalem, Israel<br>
>>>> Local: 02 930 9525<br>
>>>> Cell: 054 7 231 170<br>
>>>> Int-IS: x972 2 930 9525<br>
>>>><br>
>>>> _______________________________________________<br>
>>>> ncl-talk mailing list<br>
>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>>>> List instructions, subscriber options, unsubscribe:<br>
>>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Adam Phillips<br>
>>> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR<br>
>>> <a href="http://www.cgd.ucar.edu/staff/asphilli/" rel="noreferrer" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   303-497-1726<br>
>>><br>
>>> <<a href="http://www.cgd.ucar.edu/staff/asphilli" rel="noreferrer" target="_blank">http://www.cgd.ucar.edu/staff/asphilli</a>><br>
>>><br>
>><br>
>><br>
>> --<br>
>> Barry H. Lynn, Ph.D<br>
>> Senior Associate Scientist, Lecturer,<br>
>> The Institute of the Earth Science,<br>
>> The Hebrew University of Jerusalem,<br>
>> Givat Ram, Jerusalem 91904, Israel<br>
>> Tel: 972 547 231 170<br>
>> Fax: (972)-25662581<br>
>><br>
>> C.E.O, Weather It Is, LTD<br>
>> Weather and Climate Focus<br>
>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>> Jerusalem, Israel<br>
>> Local: 02 930 9525<br>
>> Cell: 054 7 231 170<br>
>> Int-IS: x972 2 930 9525<br>
>><br>
>><br>
><br>
> --<br>
> Barry H. Lynn, Ph.D<br>
> Senior Associate Scientist, Lecturer,<br>
> The Institute of the Earth Science,<br>
> The Hebrew University of Jerusalem,<br>
> Givat Ram, Jerusalem 91904, Israel<br>
> Tel: 972 547 231 170<br>
> Fax: (972)-25662581<br>
><br>
> C.E.O, Weather It Is, LTD<br>
> Weather and Climate Focus<br>
> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
> Jerusalem, Israel<br>
> Local: 02 930 9525<br>
> Cell: 054 7 231 170<br>
> Int-IS: x972 2 930 9525<br>
><br>
><br>
<br>
-- <br>
Barry H. Lynn, Ph.D<br>
Senior Associate Scientist, Lecturer,<br>
The Institute of the Earth Science,<br>
The Hebrew University of Jerusalem,<br>
Givat Ram, Jerusalem 91904, Israel<br>
Tel: 972 547 231 170<br>
Fax: (972)-25662581<br>
<br>
C.E.O, Weather It Is, LTD<br>
Weather and Climate Focus<br>
<a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
Jerusalem, Israel<br>
Local: 02 930 9525<br>
Cell: 054 7 231 170<br>
Int-IS: x972 2 930 9525<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/d35f5d0b/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/d35f5d0b/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Wed, 15 Jan 2020 05:26:26 +0200<br>
From: Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
To: Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>><br>
Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Disappearing Dots (Revisited)<br>
Message-ID:<br>
        <<a href="mailto:CAN7Bv24zybg2wNy4WDCC7Vc19akv8h1qEdWQ8BZn2UrZF2GWfw@mail.gmail.com" target="_blank">CAN7Bv24zybg2wNy4WDCC7Vc19akv8h1qEdWQ8BZn2UrZF2GWfw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
It does, after all, simply return "plt," which I thought would be the one<br>
to store in an array (arr(i)), from the call itself, not the function<br>
within.  That's why I am a bit confused.<br>
<br>
On Wed, Jan 15, 2020 at 5:25 AM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br>
<br>
> Rashed's fix worked fine.  I wonder why I am able to call the arrow<br>
> routine with a single array name (not array(i)).<br>
><br>
> Thanks again.<br>
><br>
> On Tue, Jan 14, 2020 at 9:48 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br>
><br>
>> Rashed seems to demonstrate that his version works, so I will probably<br>
>> find the same.  I'll update later.<br>
>><br>
>> Thank you for the help.<br>
>><br>
>> Barry<br>
>><br>
>> On Tue, Jan 14, 2020 at 9:47 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
>> wrote:<br>
>><br>
>>> Hi Adam, Rasheed.<br>
>>><br>
>>> In both cases, I call the function within a loop.  The only difference<br>
>>> is whether I refer to array(i) or arr_0, arr_1... n.<br>
>>><br>
>>> In any case, I will try Rashed's version.<br>
>>><br>
>>> Barry<br>
>>><br>
>>> On Tue, Jan 14, 2020 at 9:06 PM Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>> wrote:<br>
>>><br>
>>>> Hi Barry,<br>
>>>> If I had to guess, it is that the arrow function writes the<br>
>>>> gsn_add_polyline output as attributes named arr,arr1, and arr2 to the plt<br>
>>>> array that is to be returned by the function. If you call the function<br>
>>>> multiple times and pass all the graphical output to the same logical array<br>
>>>> named "array", each time you call arrow, array@arr, array@arr1 and<br>
>>>> array@arr2 will get overwritten.  To get around this, you should alter<br>
>>>> the arrow function to use the unique_string function.<br>
>>>> <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/unique_string.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/unique_string.shtml</a><br>
>>>><br>
>>>> For an example of how to do this, see polymarker example #18:<br>
>>>> <a href="https://www.ncl.ucar.edu/Applications/polyg.shtml#ex18" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Applications/polyg.shtml#ex18</a><br>
>>>><br>
>>>> For example, change this:<br>
>>>> plt@arr = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
>>>> to this:<br>
>>>> str = unique_string("arr")<br>
>>>> plt@$str$ = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
>>>><br>
>>>> and do the same for the other two calls to gsn_add_polyline.<br>
>>>> Hope that helps!<br>
>>>> Adam<br>
>>>><br>
>>>><br>
>>>> On Tue, Jan 14, 2020 at 9:45 AM Barry Lynn via ncl-talk <<br>
>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
>>>><br>
>>>>> Hi:<br>
>>>>><br>
>>>>> I have a bit of a mystery:<br>
>>>>><br>
>>>>> I have a loop where I am calling gsn_add_polymarker. I created an<br>
>>>>> array (dum_b(n_calls)) so I could plot the markers within the loop.<br>
>>>>><br>
>>>>> dum_b(i) = gsn_add_polymarker(wks,plot,lon_old(i),lat_old(i),mkres)<br>
>>>>><br>
>>>>><br>
>>>>> However, when I call:<br>
>>>>><br>
>>>>><br>
>>>>> array(i) = arrow(wks,plot,xpts,ypts,mkres)<br>
>>>>><br>
>>>>><br>
>>>>> I am not able to make the lines with the arrows (more than once).<br>
>>>>><br>
>>>>><br>
>>>>> warning:TransformPostDraw: tfPolyDrawList element 1 is invalid<br>
>>>>><br>
>>>>><br>
>>>>> Yet, if I call the same with<br>
>>>>><br>
>>>>><br>
>>>>> arr_0 = arrow...<br>
>>>>><br>
>>>>><br>
>>>>> arr_1 = arrow...<br>
>>>>><br>
>>>>><br>
>>>>> up to n_calls, I have no problem.<br>
>>>>><br>
>>>>><br>
>>>>> If someone can solve the mystery, I would be curious to find out the<br>
>>>>> reason for this "strange" behavior.<br>
>>>>><br>
>>>>><br>
>>>>> <a href="https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl</a><br>
>>>>><br>
>>>>> On Mon, Jul 8, 2019 at 12:13 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
>>>>> wrote:<br>
>>>>><br>
>>>>>> Hi:<br>
>>>>>><br>
>>>>>> That was absolutely the correct solution -- thank you.<br>
>>>>>><br>
>>>>>> Are you aware of a way to increase the spacing between maps?  I am<br>
>>>>>> using wrf resources so this is very obtuse.<br>
>>>>>><br>
>>>>>> Barry<br>
>>>>>><br>
>>>>>> On Mon, Jul 8, 2019 at 10:44 AM Rashed Mahmood <<br>
>>>>>> <a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@gmail.com</a>> wrote:<br>
>>>>>><br>
>>>>>>> Hi Barry,<br>
>>>>>>> A quick look suggests that it may be related to not specifying<br>
>>>>>>> unique ids for markid and textid:<br>
>>>>>>>     markid = gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>>>>>>     textid = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>>>>>><br>
>>>>>>> Next lines should have,<br>
>>>>>>> markid*1 *= gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>>>>>> textid*1* = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>>>>>><br>
>>>>>>> and so on...<br>
>>>>>>><br>
>>>>>>> Cheers<br>
>>>>>>><br>
>>>>>>> Rashed<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> On Mon, Jul 8, 2019 at 7:51 AM Barry Lynn via ncl-talk <<br>
>>>>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
>>>>>>><br>
>>>>>>>> Hello:<br>
>>>>>>>><br>
>>>>>>>> For some reason, the markid only appears on the last graph, but not<br>
>>>>>>>> the first two.  Yet, the "call" to each is the same.  I had this problem in<br>
>>>>>>>> other programs I wrote.<br>
>>>>>>>><br>
>>>>>>>> If you have a suggestion, thank you,<br>
>>>>>>>><br>
>>>>>>>> Barry<br>
>>>>>>>> --<br>
>>>>>>>> Barry H. Lynn, Ph.D<br>
>>>>>>>> Senior Associate Scientist, Lecturer,<br>
>>>>>>>> The Institute of the Earth Science,<br>
>>>>>>>> The Hebrew University of Jerusalem,<br>
>>>>>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>>>>>> Tel: 972 547 231 170<br>
>>>>>>>> Fax: (972)-25662581<br>
>>>>>>>><br>
>>>>>>>> C.E.O, Weather It Is, LTD<br>
>>>>>>>> Weather and Climate Focus<br>
>>>>>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>>>>>> Jerusalem, Israel<br>
>>>>>>>> Local: 02 930 9525<br>
>>>>>>>> Cell: 054 7 231 170<br>
>>>>>>>> Int-IS: x972 2 930 9525<br>
>>>>>>>><br>
>>>>>>>> _______________________________________________<br>
>>>>>>>> ncl-talk mailing list<br>
>>>>>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>>>>>>>> List instructions, subscriber options, unsubscribe:<br>
>>>>>>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>>>>>>><br>
>>>>>>><br>
>>>>>><br>
>>>>>> --<br>
>>>>>> Barry H. Lynn, Ph.D<br>
>>>>>> Senior Associate Scientist, Lecturer,<br>
>>>>>> The Institute of the Earth Science,<br>
>>>>>> The Hebrew University of Jerusalem,<br>
>>>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>>>> Tel: 972 547 231 170<br>
>>>>>> Fax: (972)-25662581<br>
>>>>>><br>
>>>>>> C.E.O, Weather It Is, LTD<br>
>>>>>> Weather and Climate Focus<br>
>>>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>>>> Jerusalem, Israel<br>
>>>>>> Local: 02 930 9525<br>
>>>>>> Cell: 054 7 231 170<br>
>>>>>> Int-IS: x972 2 930 9525<br>
>>>>>><br>
>>>>>><br>
>>>>><br>
>>>>> --<br>
>>>>> Barry H. Lynn, Ph.D<br>
>>>>> Senior Associate Scientist, Lecturer,<br>
>>>>> The Institute of the Earth Science,<br>
>>>>> The Hebrew University of Jerusalem,<br>
>>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>>> Tel: 972 547 231 170<br>
>>>>> Fax: (972)-25662581<br>
>>>>><br>
>>>>> C.E.O, Weather It Is, LTD<br>
>>>>> Weather and Climate Focus<br>
>>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>>> Jerusalem, Israel<br>
>>>>> Local: 02 930 9525<br>
>>>>> Cell: 054 7 231 170<br>
>>>>> Int-IS: x972 2 930 9525<br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> ncl-talk mailing list<br>
>>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>>>>> List instructions, subscriber options, unsubscribe:<br>
>>>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>>>><br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Adam Phillips<br>
>>>> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR<br>
>>>> <a href="http://www.cgd.ucar.edu/staff/asphilli/" rel="noreferrer" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   303-497-1726<br>
>>>><br>
>>>> <<a href="http://www.cgd.ucar.edu/staff/asphilli" rel="noreferrer" target="_blank">http://www.cgd.ucar.edu/staff/asphilli</a>><br>
>>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Barry H. Lynn, Ph.D<br>
>>> Senior Associate Scientist, Lecturer,<br>
>>> The Institute of the Earth Science,<br>
>>> The Hebrew University of Jerusalem,<br>
>>> Givat Ram, Jerusalem 91904, Israel<br>
>>> Tel: 972 547 231 170<br>
>>> Fax: (972)-25662581<br>
>>><br>
>>> C.E.O, Weather It Is, LTD<br>
>>> Weather and Climate Focus<br>
>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>> Jerusalem, Israel<br>
>>> Local: 02 930 9525<br>
>>> Cell: 054 7 231 170<br>
>>> Int-IS: x972 2 930 9525<br>
>>><br>
>>><br>
>><br>
>> --<br>
>> Barry H. Lynn, Ph.D<br>
>> Senior Associate Scientist, Lecturer,<br>
>> The Institute of the Earth Science,<br>
>> The Hebrew University of Jerusalem,<br>
>> Givat Ram, Jerusalem 91904, Israel<br>
>> Tel: 972 547 231 170<br>
>> Fax: (972)-25662581<br>
>><br>
>> C.E.O, Weather It Is, LTD<br>
>> Weather and Climate Focus<br>
>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>> Jerusalem, Israel<br>
>> Local: 02 930 9525<br>
>> Cell: 054 7 231 170<br>
>> Int-IS: x972 2 930 9525<br>
>><br>
>><br>
><br>
> --<br>
> Barry H. Lynn, Ph.D<br>
> Senior Associate Scientist, Lecturer,<br>
> The Institute of the Earth Science,<br>
> The Hebrew University of Jerusalem,<br>
> Givat Ram, Jerusalem 91904, Israel<br>
> Tel: 972 547 231 170<br>
> Fax: (972)-25662581<br>
><br>
> C.E.O, Weather It Is, LTD<br>
> Weather and Climate Focus<br>
> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
> Jerusalem, Israel<br>
> Local: 02 930 9525<br>
> Cell: 054 7 231 170<br>
> Int-IS: x972 2 930 9525<br>
><br>
><br>
<br>
-- <br>
Barry H. Lynn, Ph.D<br>
Senior Associate Scientist, Lecturer,<br>
The Institute of the Earth Science,<br>
The Hebrew University of Jerusalem,<br>
Givat Ram, Jerusalem 91904, Israel<br>
Tel: 972 547 231 170<br>
Fax: (972)-25662581<br>
<br>
C.E.O, Weather It Is, LTD<br>
Weather and Climate Focus<br>
<a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
Jerusalem, Israel<br>
Local: 02 930 9525<br>
Cell: 054 7 231 170<br>
Int-IS: x972 2 930 9525<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/4858641c/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/4858641c/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Wed, 15 Jan 2020 05:45:41 +0200<br>
From: Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
To: Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>><br>
Cc: ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
Subject: Re: [ncl-talk] Disappearing Dots (Correction)<br>
Message-ID:<br>
        <<a href="mailto:CAN7Bv275dNB_%2Bb3g-m28wCROvwefatYt5U763xK4jD6FTWRKkg@mail.gmail.com" target="_blank">CAN7Bv275dNB_+b3g-m28wCROvwefatYt5U763xK4jD6FTWRKkg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi:<br>
<br>
For reference, we are speaking about the following program, which draws an<br>
arrowhead and line.<br>
<br>
function arrow(wks,plt,xpts,ypts,res)<br>
<br>
; draws an arrow on a plot. calling syntax is same as in gsn_add_polyline()<br>
<br>
; Arindam Chakraborty <arch at <a href="http://caos.iisc.ernet.in" rel="noreferrer" target="_blank">caos.iisc.ernet.in</a>>, May'10.<br>
<br>
<br>
Sorry about the last two emails.  I had edited the wrong file (too late at<br>
night).<br>
<br>
As I originally wrote, both of your suggestions fixed the problem, and the<br>
test program was much appreciated.<br>
<br>
The key was changing all variables related to the polyline, the one calling<br>
the arrow program, and the ones within the arrow program itself.<br>
<br>
One thing: it is suggested to add two lines that control the thickness of<br>
the arrow, which I have done (attached: to create a very thick arrow!).<br>
<br>
Barry<br>
<br>
On Wed, Jan 15, 2020 at 5:26 AM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br>
<br>
> It does, after all, simply return "plt," which I thought would be the one<br>
> to store in an array (arr(i)), from the call itself, not the function<br>
> within.  That's why I am a bit confused.<br>
><br>
> On Wed, Jan 15, 2020 at 5:25 AM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br>
><br>
>> Rashed's fix worked fine.  I wonder why I am able to call the arrow<br>
>> routine with a single array name (not array(i)).<br>
>><br>
>> Thanks again.<br>
>><br>
>> On Tue, Jan 14, 2020 at 9:48 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
>> wrote:<br>
>><br>
>>> Rashed seems to demonstrate that his version works, so I will probably<br>
>>> find the same.  I'll update later.<br>
>>><br>
>>> Thank you for the help.<br>
>>><br>
>>> Barry<br>
>>><br>
>>> On Tue, Jan 14, 2020 at 9:47 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
>>> wrote:<br>
>>><br>
>>>> Hi Adam, Rasheed.<br>
>>>><br>
>>>> In both cases, I call the function within a loop.  The only difference<br>
>>>> is whether I refer to array(i) or arr_0, arr_1... n.<br>
>>>><br>
>>>> In any case, I will try Rashed's version.<br>
>>>><br>
>>>> Barry<br>
>>>><br>
>>>> On Tue, Jan 14, 2020 at 9:06 PM Adam Phillips <<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>><br>
>>>> wrote:<br>
>>>><br>
>>>>> Hi Barry,<br>
>>>>> If I had to guess, it is that the arrow function writes the<br>
>>>>> gsn_add_polyline output as attributes named arr,arr1, and arr2 to the plt<br>
>>>>> array that is to be returned by the function. If you call the function<br>
>>>>> multiple times and pass all the graphical output to the same logical array<br>
>>>>> named "array", each time you call arrow, array@arr, array@arr1 and<br>
>>>>> array@arr2 will get overwritten.  To get around this, you should<br>
>>>>> alter the arrow function to use the unique_string function.<br>
>>>>><br>
>>>>> <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/unique_string.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/unique_string.shtml</a><br>
>>>>><br>
>>>>> For an example of how to do this, see polymarker example #18:<br>
>>>>> <a href="https://www.ncl.ucar.edu/Applications/polyg.shtml#ex18" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Applications/polyg.shtml#ex18</a><br>
>>>>><br>
>>>>> For example, change this:<br>
>>>>> plt@arr = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
>>>>> to this:<br>
>>>>> str = unique_string("arr")<br>
>>>>> plt@$str$ = gsn_add_polyline(wks,plt,xpts,ypts,res)<br>
>>>>><br>
>>>>> and do the same for the other two calls to gsn_add_polyline.<br>
>>>>> Hope that helps!<br>
>>>>> Adam<br>
>>>>><br>
>>>>><br>
>>>>> On Tue, Jan 14, 2020 at 9:45 AM Barry Lynn via ncl-talk <<br>
>>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
>>>>><br>
>>>>>> Hi:<br>
>>>>>><br>
>>>>>> I have a bit of a mystery:<br>
>>>>>><br>
>>>>>> I have a loop where I am calling gsn_add_polymarker. I created an<br>
>>>>>> array (dum_b(n_calls)) so I could plot the markers within the loop.<br>
>>>>>><br>
>>>>>> dum_b(i) = gsn_add_polymarker(wks,plot,lon_old(i),lat_old(i),mkres)<br>
>>>>>><br>
>>>>>><br>
>>>>>> However, when I call:<br>
>>>>>><br>
>>>>>><br>
>>>>>> array(i) = arrow(wks,plot,xpts,ypts,mkres)<br>
>>>>>><br>
>>>>>><br>
>>>>>> I am not able to make the lines with the arrows (more than once).<br>
>>>>>><br>
>>>>>><br>
>>>>>> warning:TransformPostDraw: tfPolyDrawList element 1 is invalid<br>
>>>>>><br>
>>>>>><br>
>>>>>> Yet, if I call the same with<br>
>>>>>><br>
>>>>>><br>
>>>>>> arr_0 = arrow...<br>
>>>>>><br>
>>>>>><br>
>>>>>> arr_1 = arrow...<br>
>>>>>><br>
>>>>>><br>
>>>>>> up to n_calls, I have no problem.<br>
>>>>>><br>
>>>>>><br>
>>>>>> If someone can solve the mystery, I would be curious to find out the<br>
>>>>>> reason for this "strange" behavior.<br>
>>>>>><br>
>>>>>><br>
>>>>>> <a href="https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Support/talk_archives/2010/att-1344/arrow.ncl</a><br>
>>>>>><br>
>>>>>> On Mon, Jul 8, 2019 at 12:13 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
>>>>>> wrote:<br>
>>>>>><br>
>>>>>>> Hi:<br>
>>>>>>><br>
>>>>>>> That was absolutely the correct solution -- thank you.<br>
>>>>>>><br>
>>>>>>> Are you aware of a way to increase the spacing between maps?  I am<br>
>>>>>>> using wrf resources so this is very obtuse.<br>
>>>>>>><br>
>>>>>>> Barry<br>
>>>>>>><br>
>>>>>>> On Mon, Jul 8, 2019 at 10:44 AM Rashed Mahmood <<br>
>>>>>>> <a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@gmail.com</a>> wrote:<br>
>>>>>>><br>
>>>>>>>> Hi Barry,<br>
>>>>>>>> A quick look suggests that it may be related to not specifying<br>
>>>>>>>> unique ids for markid and textid:<br>
>>>>>>>>     markid = gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>>>>>>>     textid = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>>>>>>><br>
>>>>>>>> Next lines should have,<br>
>>>>>>>> markid*1 *= gsn_add_polymarker(wks,plots(0),lon,lat,mkres)<br>
>>>>>>>> textid*1* = gsn_add_text(wks,plots(0),cities,lon,lat,txres)<br>
>>>>>>>><br>
>>>>>>>> and so on...<br>
>>>>>>>><br>
>>>>>>>> Cheers<br>
>>>>>>>><br>
>>>>>>>> Rashed<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> On Mon, Jul 8, 2019 at 7:51 AM Barry Lynn via ncl-talk <<br>
>>>>>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
>>>>>>>><br>
>>>>>>>>> Hello:<br>
>>>>>>>>><br>
>>>>>>>>> For some reason, the markid only appears on the last graph, but<br>
>>>>>>>>> not the first two.  Yet, the "call" to each is the same.  I had this<br>
>>>>>>>>> problem in other programs I wrote.<br>
>>>>>>>>><br>
>>>>>>>>> If you have a suggestion, thank you,<br>
>>>>>>>>><br>
>>>>>>>>> Barry<br>
>>>>>>>>> --<br>
>>>>>>>>> Barry H. Lynn, Ph.D<br>
>>>>>>>>> Senior Associate Scientist, Lecturer,<br>
>>>>>>>>> The Institute of the Earth Science,<br>
>>>>>>>>> The Hebrew University of Jerusalem,<br>
>>>>>>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>>>>>>> Tel: 972 547 231 170<br>
>>>>>>>>> Fax: (972)-25662581<br>
>>>>>>>>><br>
>>>>>>>>> C.E.O, Weather It Is, LTD<br>
>>>>>>>>> Weather and Climate Focus<br>
>>>>>>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>>>>>>> Jerusalem, Israel<br>
>>>>>>>>> Local: 02 930 9525<br>
>>>>>>>>> Cell: 054 7 231 170<br>
>>>>>>>>> Int-IS: x972 2 930 9525<br>
>>>>>>>>><br>
>>>>>>>>> _______________________________________________<br>
>>>>>>>>> ncl-talk mailing list<br>
>>>>>>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>>>>>>>>> List instructions, subscriber options, unsubscribe:<br>
>>>>>>>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>><br>
>>>>>>> --<br>
>>>>>>> Barry H. Lynn, Ph.D<br>
>>>>>>> Senior Associate Scientist, Lecturer,<br>
>>>>>>> The Institute of the Earth Science,<br>
>>>>>>> The Hebrew University of Jerusalem,<br>
>>>>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>>>>> Tel: 972 547 231 170<br>
>>>>>>> Fax: (972)-25662581<br>
>>>>>>><br>
>>>>>>> C.E.O, Weather It Is, LTD<br>
>>>>>>> Weather and Climate Focus<br>
>>>>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>>>>> Jerusalem, Israel<br>
>>>>>>> Local: 02 930 9525<br>
>>>>>>> Cell: 054 7 231 170<br>
>>>>>>> Int-IS: x972 2 930 9525<br>
>>>>>>><br>
>>>>>>><br>
>>>>>><br>
>>>>>> --<br>
>>>>>> Barry H. Lynn, Ph.D<br>
>>>>>> Senior Associate Scientist, Lecturer,<br>
>>>>>> The Institute of the Earth Science,<br>
>>>>>> The Hebrew University of Jerusalem,<br>
>>>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>>>> Tel: 972 547 231 170<br>
>>>>>> Fax: (972)-25662581<br>
>>>>>><br>
>>>>>> C.E.O, Weather It Is, LTD<br>
>>>>>> Weather and Climate Focus<br>
>>>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>>>> Jerusalem, Israel<br>
>>>>>> Local: 02 930 9525<br>
>>>>>> Cell: 054 7 231 170<br>
>>>>>> Int-IS: x972 2 930 9525<br>
>>>>>><br>
>>>>>> _______________________________________________<br>
>>>>>> ncl-talk mailing list<br>
>>>>>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>>>>>> List instructions, subscriber options, unsubscribe:<br>
>>>>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> --<br>
>>>>> Adam Phillips<br>
>>>>> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR<br>
>>>>> <a href="http://www.cgd.ucar.edu/staff/asphilli/" rel="noreferrer" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   303-497-1726<br>
>>>>><br>
>>>>> <<a href="http://www.cgd.ucar.edu/staff/asphilli" rel="noreferrer" target="_blank">http://www.cgd.ucar.edu/staff/asphilli</a>><br>
>>>>><br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Barry H. Lynn, Ph.D<br>
>>>> Senior Associate Scientist, Lecturer,<br>
>>>> The Institute of the Earth Science,<br>
>>>> The Hebrew University of Jerusalem,<br>
>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>> Tel: 972 547 231 170<br>
>>>> Fax: (972)-25662581<br>
>>>><br>
>>>> C.E.O, Weather It Is, LTD<br>
>>>> Weather and Climate Focus<br>
>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>> Jerusalem, Israel<br>
>>>> Local: 02 930 9525<br>
>>>> Cell: 054 7 231 170<br>
>>>> Int-IS: x972 2 930 9525<br>
>>>><br>
>>>><br>
>>><br>
>>> --<br>
>>> Barry H. Lynn, Ph.D<br>
>>> Senior Associate Scientist, Lecturer,<br>
>>> The Institute of the Earth Science,<br>
>>> The Hebrew University of Jerusalem,<br>
>>> Givat Ram, Jerusalem 91904, Israel<br>
>>> Tel: 972 547 231 170<br>
>>> Fax: (972)-25662581<br>
>>><br>
>>> C.E.O, Weather It Is, LTD<br>
>>> Weather and Climate Focus<br>
>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>> Jerusalem, Israel<br>
>>> Local: 02 930 9525<br>
>>> Cell: 054 7 231 170<br>
>>> Int-IS: x972 2 930 9525<br>
>>><br>
>>><br>
>><br>
>> --<br>
>> Barry H. Lynn, Ph.D<br>
>> Senior Associate Scientist, Lecturer,<br>
>> The Institute of the Earth Science,<br>
>> The Hebrew University of Jerusalem,<br>
>> Givat Ram, Jerusalem 91904, Israel<br>
>> Tel: 972 547 231 170<br>
>> Fax: (972)-25662581<br>
>><br>
>> C.E.O, Weather It Is, LTD<br>
>> Weather and Climate Focus<br>
>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>> Jerusalem, Israel<br>
>> Local: 02 930 9525<br>
>> Cell: 054 7 231 170<br>
>> Int-IS: x972 2 930 9525<br>
>><br>
>><br>
><br>
> --<br>
> Barry H. Lynn, Ph.D<br>
> Senior Associate Scientist, Lecturer,<br>
> The Institute of the Earth Science,<br>
> The Hebrew University of Jerusalem,<br>
> Givat Ram, Jerusalem 91904, Israel<br>
> Tel: 972 547 231 170<br>
> Fax: (972)-25662581<br>
><br>
> C.E.O, Weather It Is, LTD<br>
> Weather and Climate Focus<br>
> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
> Jerusalem, Israel<br>
> Local: 02 930 9525<br>
> Cell: 054 7 231 170<br>
> Int-IS: x972 2 930 9525<br>
><br>
><br>
<br>
-- <br>
Barry H. Lynn, Ph.D<br>
Senior Associate Scientist, Lecturer,<br>
The Institute of the Earth Science,<br>
The Hebrew University of Jerusalem,<br>
Givat Ram, Jerusalem 91904, Israel<br>
Tel: 972 547 231 170<br>
Fax: (972)-25662581<br>
<br>
C.E.O, Weather It Is, LTD<br>
Weather and Climate Focus<br>
<a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
Jerusalem, Israel<br>
Local: 02 930 9525<br>
Cell: 054 7 231 170<br>
Int-IS: x972 2 930 9525<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/19e179f9/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/19e179f9/attachment-0001.html</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: test_arrow.ncl<br>
Type: application/octet-stream<br>
Size: 2391 bytes<br>
Desc: not available<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/19e179f9/attachment-0001.obj" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/19e179f9/attachment-0001.obj</a>><br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Wed, 15 Jan 2020 08:07:59 +0100<br>
From: "S. Y." <<a href="mailto:e.sadam91@gmail.com" target="_blank">e.sadam91@gmail.com</a>><br>
To: <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
Subject: [ncl-talk] error while running NCL and Shape file scripts<br>
Message-ID:<br>
        <CALC5VUrtYXDD=fEzfZTAQeJz+dME07At5gOY7ZDVY=<a href="mailto:Y1PCpO-g@mail.gmail.com" target="_blank">Y1PCpO-g@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello everyone<br>
I am new NCL user and i was trying to plot shapefiles using NCL following<br>
the procedures given in one of the webinar.<br>
However when i run the script i got an error as i copied below<br>
<br>
<br>
(base) sdm@sdm-ThinkPad-P50:~/Desktop/NCL_folders/NCL_and_shapefiles$ ncl<br>
senegal.ncl<br>
 Copyright (C) 1995-2017 - All Rights Reserved<br>
 University Corporation for Atmospheric Research<br>
 NCAR Command Language Version 6.4.0<br>
 The use of this software is governed by a License Agreement.<br>
 See <a href="http://www.ncl.ucar.edu/" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
fatal:Could not open ($NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl)<br>
fatal:error at line 1 in file senegal.ncl<br>
<br>
fatal:syntax error: line -1 before or near<br>
<br>
^<br>
<br>
fatal:error in statement<br>
<br>
<br>
<br>
I also attached the script that i used to run.<br>
<br>
Thank you for your help in advance.<br>
<br>
kind regards,<br>
Sadame<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/b7d3a0a4/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/b7d3a0a4/attachment-0001.html</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: senegal.ncl<br>
Type: application/octet-stream<br>
Size: 1046 bytes<br>
Desc: not available<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/b7d3a0a4/attachment-0001.obj" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/b7d3a0a4/attachment-0001.obj</a>><br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Wed, 15 Jan 2020 09:44:37 +0100<br>
From: Karin Meier-Fleischer <<a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>><br>
To: <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
Subject: Re: [ncl-talk] error while running NCL and Shape file scripts<br>
Message-ID: <<a href="mailto:bb7a8fd2-343f-7890-2b2f-548cbcff2981@dkrz.de" target="_blank">bb7a8fd2-343f-7890-2b2f-548cbcff2981@dkrz.de</a>><br>
Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
<br>
Hi Sadame,<br>
<br>
it seems that you have not set the NCARG_ROOT environment variable.<br>
<br>
What does your system return when you enter 'echo $NCARG_ROOT' in a <br>
terminal?<br>
If its empty than you should have a look at<br>
<a href="http://ncl.ucar.edu/Download/install_from_binary.shtml#SetUpEnvironment" rel="noreferrer" target="_blank">http://ncl.ucar.edu/Download/install_from_binary.shtml#SetUpEnvironment</a><br>
<br>
By the way you don't have to load the gsn_code.ncl and gsn_csm.ncl files <br>
anymore, they are automatically included.<br>
<br>
-Karin<br>
<br>
Am 15.01.20 um 08:07 schrieb S. Y. via ncl-talk:<br>
> Hello everyone<br>
> I am new NCL user and i was trying to plot shapefiles using NCL <br>
> following the procedures given in one of the webinar.<br>
> However when i run the script i got an error as i copied below<br>
><br>
><br>
> (base) sdm@sdm-ThinkPad-P50:~/Desktop/NCL_folders/NCL_and_shapefiles$ <br>
> ncl senegal.ncl<br>
> ?Copyright (C) 1995-2017 - All Rights Reserved<br>
> ?University Corporation for Atmospheric Research<br>
> ?NCAR Command Language Version 6.4.0<br>
> ?The use of this software is governed by a License Agreement.<br>
> ?See <a href="http://www.ncl.ucar.edu/" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
> fatal:Could not open ($NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl)<br>
> fatal:error at line 1 in file senegal.ncl<br>
><br>
> fatal:syntax error: line -1 before or near<br>
><br>
> ^<br>
><br>
> fatal:error in statement<br>
><br>
><br>
><br>
> I also attached?the script that i used to run.<br>
><br>
> Thank you for your help in advance.<br>
><br>
> kind regards,<br>
> Sadame<br>
><br>
> _______________________________________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/bc1a5577/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200115/bc1a5577/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
------------------------------<br>
<br>
End of ncl-talk Digest, Vol 194, Issue 16<br>
*****************************************<br>
</blockquote></div>