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 #79856 is a reply to message #79855] Thu, 19 April 2012 07:16 Go to previous messageGo to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
On 19 avr, 15:58, David Fanning <n...@idlcoyote.com> wrote:
> alx writes:
>> When ASPECT_RATIO is not specified, the IMAGE function scales the
>> (nx,ny) image array with equal pixel sizes in x and y, in accordance
>> with POSITION keyword (i.e. the overall scale is given by (pos[1]-
>> pos[0])/nx > (pos[3]-pos[2])/ny). Your POSITION values are therefore
>> satisfied in only one direction.
>> When ASPECT_RATIO=0, the image function scales the array in both x and
>> y direction, independently. But the image is distorted.
>> All this makes sense, but is not really  explained in EXELIS doc.
>
> Well, let's leave aside the fact that the documentation
> for the ASPECT_RATIO seems to be describing an alternative
> Universe.
>
> If setting ASPECT_RATIO=0 does what you say it does, I
> would be *extremely* happy. I don't mind a distorted
> image. That's what I'm trying for. I'm just saying,
> the Image() function is distorting the image, but not
> in any way that even vaguely resembles what I have asked
> it to do!
>
> I'm using the code from the other day. I'm just trying
> to make a display that I can compare with the display
> I created with Coyote Graphics. I can *easily* make
> the Coyote Graphics display look like the function
> graphics display (just set the Keep_Aspect keyword
> on the image). But, it this case, I don't want to do
> that. I want to fill up the goddamn window!
>
> How hard can it be to make an image the proper size?
> I've been doing nothing but that for 20 years! I would
> be happy to supply Excels my cgImage code, if they
> can't find it on the Internet on their own.
>
> Sheesh! The main reason I can't work with Function Graphics
> is that my blood pressure gets out of control. :-(
>
> 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.")
>
>

Maybe I do not fully understand what you exactly want.
But I think that everything can be obtained with an adequate
combination of POSITION, ASPECT_RATIO keywords and CONVERTCOORD, SCALE
and TRANSLATE functions (even ROTATE if you like).
For example, with the yesterday example, you can exactly and entirely
fill your window by doing:
im = IMAGE(scaledData, x, y, RGB_TABLE=rgb, ASPECT_RATIO=0, $
XRANGE=xrange, YRANGE=yrange, GRID_UNITS='degrees',
POSITION=[0.0,0.0,1.0,1.0])
map = map('EQUIRECTANGULAR', LIMIT=limit, ASPECT_RATIO=0,
POSITION=[0.0,0.0,1.0,1.0], /CURRENT)
Is'nt it ?
alx.
[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 18:11:50 PDT 2025

Total time taken to generate the page: 0.00197 seconds