[ncl-talk] A error plotting markers

Barry Lynn barry.h.lynn at gmail.com
Mon Feb 13 13:25:35 MST 2017


Thank you.

I didn't realize that the messages were displayed this way, and thought
that there was no answer.

But there is, as you noted:


   - Next in thread: David Brown: "Re: How to avoid "NO CONTOUR DATA"
   message" <https://www.ncl.ucar.edu/Support/talk_archives/2012/1762.html>


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

> The word "marker" is arbitrary. The unique_string function will take
> whatever string you input to the function, and return "xxxxxN" where
> "xxxxx" is the string you entered, and N is a unique number counter. I just
> used "marker" because I thought you were calling gsn_add_polymarker, so it
> was somewhat meaningful to use the word "marker". But, it's basically a
> dummy variable, so you can call it whatever you want.
>
> BTW, you can usually google an error message and hopefully you'll get a
> useful hit.  I googled "no contour data" and it came up with this link:
>
> https://www.ncl.ucar.edu/Support/talk_archives/2012/1763.html
>
> I then clicked on "next in thread" so I could see the answer:
>
> https://www.ncl.ucar.edu/Support/talk_archives/2012/1762.html
>
> which is:
>
>  Try setting cnNoDataLabelOn to False.
>
> --Mary
>
>
>
>
> On Mon, Feb 13, 2017 at 10:52 AM, Barry Lynn <barry.h.lynn at gmail.com>
> wrote:
>
>> 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 <(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/20170213/0134cadc/attachment.html 


More information about the ncl-talk mailing list