Re: Problem with add_polymarker

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Aug 22 2012 - 07:48:43 MDT

Hi Soumik,

The problem is that the "count" variable is not being incremented properly.

You have this code:

       marker0(count) = gsn_add_polymarker(wks,plot,glon(g),glat(g),polyres)
       if (g .gt. 10) then
        g = g + 0
        else
        g = g+1
        count = count + 1
       end if

but "count" should be incremented every time you call gsn_add_polymarker. Change it to:

       marker0(count) = gsn_add_polymarker(wks,plot,glon(g),glat(g),polyres)
        count = count + 1
       if (g .gt. 10) then
        g = g + 0
        else
        g = g+1
        count = count + 1
       end if

--Mary

On Aug 21, 2012, at 6:27 PM, Soumik Basu wrote:

> Hi,
>
> I am trying to plot some polymarkers. But I am constantly getting some warning messages like this:
>
> warning:TransformDraw: tfPolyDrawList element 55298 is invalid
> warning:TransformDraw: tfPolyDrawList element 55299 is invalid
> warning:TransformDraw: tfPolyDrawList element 55300 is invalid
> warning:TransformDraw: tfPolyDrawList element 55301 is invalid
> warning:TransformDraw: tfPolyDrawList element 55302 is invalid
> warning:TransformDraw: tfPolyDrawList element 55303 is invalid
> warning:TransformDraw: tfPolyDrawList element 55304 is invalid
> warning:TransformDraw: tfPolyDrawList element 55305 is invalid
> warning:TransformDraw: tfPolyDrawList element 55306 is invalid
> warning:TransformDraw: tfPolyDrawList element 55307 is invalid
> warning:TransformDraw: tfPolyDrawList element 55308 is invalid
>
> I saw that I should get this warning when I don't have a unique variable name for all the variables I am plotting. So I used unique name for each but still I am seeing this message.
> Can anybody please tell me what I am missing in my script. I am attaching the script.
>
> Thanks,
> Soumik
>
> --
> "Numbing the pain for a while will make it worse when you finally feel it.
> ~J.K. Rowling"
> *****************************************
> Soumik Basu
> Graduate Student, Research Assistant
> International Arctic Research Center
> University of Alaska Fairbanks
> Fairbanks,Alaska,USA
> *****************************************<gen_x4.ncl>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Aug 22 07:48:55 2012

This archive was generated by hypermail 2.1.8 : Thu Aug 23 2012 - 16:16:15 MDT