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 #79859 is a reply to message #79858] Thu, 19 April 2012 06:58 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
[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 19:34:35 PDT 2025

Total time taken to generate the page: 0.00457 seconds