Re: warning/error message

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 18 Jul 2006 14:04:34 -0600 (MDT)

Hi Diane,

Without seeing your script, my best guess is that you are calling any
one of the gsn_add_xxxx functions multiple times, and not assigning
the results to a unique variable everytime. This is required in order to
make sure the added primitive "lives" for the duration of the script.

For example:

   a = gsn_add_polygon(wks,plot,x1,y1,gsres)
   a = gsn_add_polyline(wks,plot,x2,y2,gsres)
   a = gsn_add_polymarker(wks,plot,x3,y3,gsres)

is going to be a problem, because you are reusing "a". You need
to make every one of these unique:

   a = gsn_add_polygon(wks,plot,x1,y1,gsres)
   b = gsn_add_polyline(wks,plot,x2,y2,gsres)
   c = gsn_add_polymarker(wks,plot,x3,y3,gsres)

You can also make this an array:

   a = new(3,graphic)
   a(0) = gsn_add_polygon(wks,plot,x1,y1,gsres)
   a(1) = gsn_add_polyline(wks,plot,x2,y2,gsres)
   a(2) = gsn_add_polymarker(wks,plot,x3,y3,gsres)

If this doesn't solve your problem, please email me separately and send
me your script if you can.

Thanks,

--Mary

On Tue, 18 Jul 2006, Diane Strassberg wrote:

> Hello
>
> I wanted to know if anyone knows the possible cause of the following
> warnings and error. I feel like I do but can't put my finger on it.
>
> warning:TransformPostDraw: tfPolyDrawList element 0 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 1 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 2 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 3 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 4 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 5 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 6 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 7 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 8 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 9 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 10 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 11 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 12 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 13 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 14 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 15 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 16 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 17 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 18 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 19 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 20 is invalid
> warning:TransformPostDraw: tfPolyDrawList element 21 is invalid
> warning:prXArray is not a valid resource in graphic_style at this time
> warning:prYArray is not a valid resource in graphic_style at this time
> warning:prPolyType is not a valid resource in graphic_style at this time
> warning:prGraphicStyle is not a valid resource in graphic_style at this time
> Segmentation fault
>
> Thanks
>
> -Diane Strassberg
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jul 18 2006 - 14:04:34 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 19 2006 - 08:40:45 MDT