Re: warning:TransformPreDraw: tfPolyDrawList element is invalid

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue May 28 2013 - 09:38:04 MDT

Hi,

Glad you found the solution.

Just so others can benefit, you can find the solution to this problem on our FAQ:

http://www.ncl.ucar.edu/FAQ/#err_msgs_025

In general, if you get an error message from NCL, you can check the FAQ to see if it is mentioned there.

--Mary

On May 26, 2013, at 6:47 PM, Ahmad Farsyud wrote:

> Hallo NCL,
>
> I solved it.
> Thanks,
> -A
>
>
> On Mon, May 27, 2013 at 9:23 AM, Ahmad Farsyud <a.farsyud@gmail.com> wrote:
> Hallo NCL,
>
> I tried to overly a polygon (stdev) over my xy-plot.
> However, I got this error:
> warning:TransformPreDraw: tfPolyDrawList element 0 is invalid
>
> Part of my codes is:
>
> ----
> plot(0) = gsn_csm_xy(wks,ispan(1,12,1),sst,sres)
>
> gsres = True ; poly res
> gsres@tfPolyDrawOrder = "Predraw" ; draw this first
> gsres@gsFillColor = "SlateBlue"
> time = fspan(1,12,12)
> do i = 0,11 ; color chosen
> dummy = gsn_add_polygon (wks,plot(0),time,std(i),gsres)
> end do
>
> ----
>
> PrintVarSummary (sst)
>
> Variable: sst
> Type: float
> Total Size: 48 bytes
> 12 values
> Number of Dimensions: 1
> Dimensions and sizes: [12]
> Coordinates:
> Number Of Attributes: 1
> _FillValue : -9999
> (0) 5.597216
> (1) 5.774993
> (2) 6.604471
> (3) 6.991065
> (4) 5.922031
> (5) 4.974644
> (6) 4.189209
> (7) 4.474511
> (8) 4.086342
> (9) 4.424598
> (10) 4.903216
> (11) 5.270484
>
> Print (std)
>
> (0) std
> (0) 2.636262
> (1) 2.476886
> (2) 3.085887
> (3) 3.301919
> (4) 2.355882
> (5) 2.126475
> (6) 1.986852
> (7) 2.223086
> (8) 1.852491
> (9) 1.787768
> (10) 2.32576
> (11) 2.285851
>
> thank you..
> Any Idea, I really appreciate it.
>
> _______________________________________________
> 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 Tue May 28 09:38:17 2013

This archive was generated by hypermail 2.1.8 : Thu May 30 2013 - 11:38:10 MDT