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 #50814 is a reply to message #50813] Tue, 17 October 2006 06:12 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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: Thu Oct 09 19:00:31 PDT 2025

Total time taken to generate the page: 1.03971 seconds