[ncl-talk] Issues plotting multiple polylines and polymarkers
Mary Haley
haley at ucar.edu
Mon Jun 19 12:17:45 MDT 2017
Hi Andrew,
Since you are calling the various gsn_add functions inside two nested do
loops, you must have a unique "dum" variable for each iteration of "i" and
"j".
You have a counter_1 and counter_2 variable that is being reset to 0 each
time through an iteration of "i", which causes the previous markers, lines,
etc to be clobbered.
To truly be unique, these counters should be initialized to 0 outside the
"i" loop and not outside the "j" loop.
I think that the use of the special gsSegments resource could be used here
to improve the speed of your script (if it is slow) and make it so that you
don't need so many separate calls to gsn_add_xxxx. If you can provide me
with the data files, then I can take a stab at this. (You can do this
offline, if you want).
--Mary
On Mon, Jun 19, 2017 at 11:33 AM, Andrew Kren - NOAA Affiliate <
andrew.kren at noaa.gov> wrote:
> Dear ncl-talk,
>
> I'm trying to plot storm tracks for a variety of storms, one file for each
> storm. My plan was to overplot each track and then draw the plot at the end
> after reading all files and tracks. When I do this, I get the error,
> "warning:TransformPostDraw: tfPolyDrawList element 868 is invalid". I get a
> number of these errors. While my labels plot fine, my lines and markers
> don't show up, obviously because of the error.
>
> I looked at unique_string example to avoid this, but couldn't find out how
> to correctly implement it, so I decided to create a large "dum" array for
> each polyline/marker, but I got the same error. I can't figure out why its
> still doing the error even when I'm keeping the id's.
>
> Any help much appreciated. Thanks!
>
> --
> Andrew Kren, PhD
> Research Scientist I, Global Observing Systems Analysis (GOSA) Group
> NOAA ESRL Global Systems Division (Rm 3C515)
> 325 Broadway, Boulder, CO 80305
> (303) 497-5418
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170619/c7fb8e16/attachment.html
More information about the ncl-talk
mailing list