[ncl-talk] A error plotting markers

Barry Lynn barry.h.lynn at gmail.com
Mon Feb 13 10:52:14 MST 2017


Thank you.

That works.

I am wondering about a couple of things.

1) Why do you use the word "marker?"

2) How do I remove the statement "No contour data?"

I added some random fluctuations, and this seems to help most times, but
not all.

Barry

On Mon, Feb 13, 2017 at 6:49 PM, Mary Haley <haley at ucar.edu> wrote:

> Barry,
>
> When you call any of the gsn_add_poly routines, you need to make sure that
> the variable on the left side of the equation is unique. This will also
> help insure that you don't get an error about the size not matching.
>
> Since you have a plot object, you can use this  with the "unique_string"
> function to create a unique name every time:
>
> tmpstr = unique_string("marker")
> plot_t@$tmpstr$  = markid_l
>
> --Mary
>
>
>
> On Sat, Feb 11, 2017 at 8:41 PM, Barry Lynn <barry.h.lynn at gmail.com>
> wrote:
>
>> P.S. You won't be able to test it because I can't attach the wrf output
>> file.
>>
>> If needed, I can extract the xlat,xlon information.  Please let me know.
>>
>> On Sun, Feb 12, 2017 at 5:39 AM, Barry Lynn <barry.h.lynn at gmail.com>
>> wrote:
>>
>>> Hi:
>>>
>>> I want to plot different color markers, depending on intensity of the
>>> variables (snowh_dom_rate).
>>>
>>> The number of markers changes depending on the interval (I also change
>>> the color.)
>>>
>>> The problem occurs from line 458 to the bottom (about 20 or so lines of
>>> code).
>>>
>>> It only happens if I have more than one interval (e.g., interval 0,1,
>>> but no others).
>>>
>>> I went to here to solve this problem.
>>>
>>> https://www.ncl.ucar.edu/Support/talk_archives/2012/0899.html
>>>
>>> However, if I attach attributes, I get this error:
>>>
>>> fatal:Dimension size of attribute and right-hand side of assignment do
>>> not match
>>> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 487 in
>>> file ./test.ncl
>>>
>>> If I set: plot_t at markid_l  := markid_l
>>>
>>> I return to the original problem.
>>>
>>> (Note, I fudged in some data for the higher interval -- but the code
>>> fails whether I have it in my original data or not).
>>>
>>> Thank you!
>>> --
>>> 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>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>


-- 
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/20170213/7c77fbf9/attachment.html 


More information about the ncl-talk mailing list