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

Home » Public Forums » archive » Re: Preserving coordinate transformation
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: Preserving coordinate transformation [message #50813 is a reply to message #50812] Tue, 17 October 2006 06:32 Go to previous messageGo to previous message
Sverre Solberg is currently offline  Sverre Solberg
Messages: 18
Registered: February 2005
Junior Member
Thanks, you were right! A bit silly this, as I had specified the window
index with wset, but another bug made it wrong. Anyway, it works now.
And thanks for the help, I wasn't aware that wset reestablished !D.


David Fanning wrote:
> Sverre Solberg writes:
>
>> Hm, well, that's just what I tried, still it is unclear to me how to
>> actually use the !x, !y and !map. I cant simply reset, like !x = <saved
>> !x> etc, as I guess I also need the !D which is a read-only
>> variable(?). Furthermore, I havent been able to dig out how/where idl
>> do the conversion from device to map coordinates. The documentation for
>> convert_coord is only describing transformation between data, device
>> and normal, but doesnt mention the situation when there's a map
>> involved. Trying to hardcode the transformation formulas described in
>> the manual for convert_coord (after first saving the values stored in
>> !x, !y and !d) doesnt seem to give the correct answer. Am I missing
>> some important point here?
>
> What's usually missing in most of the widget programs
> I look at is a failure to make *this* window the current
> graphics window! A WSET will probably cure your !D problems
> (which you don't need to bother with, by the way).
>
> Do a WSET to the proper window, restore !X, !Y, and !MAP,
> and CONVERT_COORD will work like a champ. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Preserving coordinate transformation
Next Topic: idl6.3 bug on Macintel?

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

Current Time: Fri Oct 10 01:36:52 PDT 2025

Total time taken to generate the page: 1.12064 seconds