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

Home » Public Forums » archive » Re: Map Function Question
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: Map Function Question [message #79865 is a reply to message #79860] Thu, 19 April 2012 05:35 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
alx writes:

> Well, it seems that the IMAGE function implicitly uses ASPECT_RATIO=1
> and then adjust the position.
> You can get the correct position by forcing ASPECT_RATIO=0 in the
> call.
>
> im = IMAGE(scaledData, x, y, RGB_TABLE=rgb, XRANGE=xrange,
> YRANGE=yrange, GRID_UNITS='degrees', POSITION=[0.1,0.1,0.9,0.9])
> print,im.convertCoord(x[0],y[0],/DATA,/TO_NORMAL)
> 0.10000000 0.24925925 0.00000000
> im = IMAGE(scaledData, x, y, RGB_TABLE=rgb, ASPECT_RATIO=0,
> XRANGE=xrange, YRANGE=yrange, GRID_UNITS='degrees',
> POSITION=[0.1,0.1,0.9,0.9])
> print,im.convertCoord(x[0],y[0],/DATA,/TO_NORMAL)
> 0.10000000 0.10000000 0.00000000
>
> One more thing being not clearly documented and which cannot be
> guessed !

Well, putting ASPECT_RATIO=0 in the call certainly
changes the aspect ratio to *something*, although
God only knows what it is. It is certainly not to
what I asked for. And, whatever it is, the map
I'm trying to put on top of the image seems
to ignore it, too.

Tell me again how you are using these routines
to do science. It does seem a wonder to me!

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PyMOL in IDL
Next Topic: What color should it be?

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

Current Time: Wed Oct 08 17:31:11 PDT 2025

Total time taken to generate the page: 0.00419 seconds