comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » PLOTS versus POLYLINE
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: PLOTS versus POLYLINE [message #82175 is a reply to message #82107] Wed, 21 November 2012 09:15 Go to previous messageGo to previous message
Brian McNoldy is currently offline  Brian McNoldy
Messages: 35
Registered: July 2000
Member
On Wednesday, November 21, 2012 10:15:34 AM UTC-5, Mark Piper wrote:
> On Wednesday, November 21, 2012 3:22:14 AM UTC-7, alx wrote:
>
>> Le mardi 20 novembre 2012 20:33:14 UTC+1, Brian McNoldy a écrit :
>
>>
>
>>> I have admittedly not tinkered around much yet with IDL's snazzy new graphics capabilities (map, text, polygon, etc), but was going to give it a try and convert a fairly simple program to the new format. In my example, a map is drawn, then various annotations are added, and lots of lines are added to the map (storm tracks). The tracks are in lat/lon coordinates of course, but must be treated carefully (I don't want to just throw the entire vector of coordinates at it at once). Previously, I accomplished this with PLOTS (and /CONTINUE), and looped over the points, treating them as necessary.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> I can't find a function in the new graphics environment to do something similar, but am probably just missing something obvious. POLYLINE seemed like the correct avenue, but it's not cooperating.
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Any guidance would be much appreciated!
>
>>
>
>>
>
>>
>
>> I am not fully experienced in using POLYLINE function. But I guess that you can do what you want by using its GETDATA/SETDATA and CONVERTCOORD methods, as well as the CONNECTIVITY keyword.
>
>>
>
>> Adding, modifying and retrieving graphic components is the power of IDL object graphics.
>
>>
>
>> alx.
>
>
>
> Thank you, Alain -- I agree, SetData is the key:
>
>
>
> http://www.exelisvis.com/docs/SetData_Method.html
>
>
>
> Brian, if you'd be interested, maybe we could work together to make an example that could be included in the Help?
>
>
>
> mp
>
>
>
> P.S. (and totally OT) Brian, I saw a few of your recent posts on the Capital Weather Gang blog. Cool! My friend Greg Postel used to blog there, but he recently took a job with The Weather Channel.

Thanks for the feedback.

The image that I'm trying to reproduce within the new graphics environment is one that shows hurricane tracks (in the example here, it's for the full season, but I also have a version that is real-time and updated hourly). The example plot can be found at http://andrew.rsmas.miami.edu/bmcnoldy/tropics/atcf/test/lat estATL.png, and all of the real-time plots can be found at http://andrew.rsmas.miami.edu/bmcnoldy/tropics/atcf/

I'm making them completely with the traditional graphics, which I'm quite familiar with. You can clearly see how each track requires special attention based on the storm's classification and intensity (lots and lots of IF statements!). Definitely not as simple as just plotting a vector of lat/lon pairs.

As far as GetData, SetData, etc, I have never used those. I was hoping there was something similar to the ease of PLOTS. This might be a tricky example to try learning the new graphics environment!

[Mark, that's really neat that you came across my CWG blog posts... small world! As Greg was getting ready to head for TWC, they started looking for a new hurricane blogger, and asked me if I'd be interested. I've been doing it personally for 16 years, so it was an easy adaptation! Incidentally, this map of the 2012 hurricane season tracks will be making an appearance in one of next week's posts!]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SMOOTH or TS_SMOOTH
Next Topic: picking an option with radio buttons

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 09:14:48 PDT 2025

Total time taken to generate the page: 0.72044 seconds