Rebecca C writes:
>
> David, thank you so much for your reply! I actually do have the Ken Bowman book, but I find it too complex to understand (I was mistakenly placed into this class, but due to financial aid/registration reasons could not leave, and must pass it to graduate. I have no programming background or intention of ever being near IDL again in my life, after I make it through this class!)
>
> Anyway, after browsing this document - http://www.astro.cornell.edu/academics/courses/astro310/IDL_ Image_Tutorial.pdf - I modified what I wrote so far, which by trial and error, adjusting the window size, I can make look like what it's supposed to look like.
>
> However, I can't understand what each part means. Let me pose one specific question: I noticed that when I change the value next to "tv, ocean", the picture of the ocean moves up and down. But, only whole numbers make a difference, and I can only see it in the lower positions if I happen to make the window large enough (via guessing).
>
> Could you tell me what that parameter is that I am changing? I'll be setting it to "2", and trial-and-error'ing the window size to squish the ocean image right up under the sky image, and calling it a day. But, I'd like to understand what the number's for!
>
> Thanks again! Here is the "new" .pro:
>
> PRO jpghomework2
> file='sky.jpg'
> read_JPEG,file,sky
>
> file2='ocean.jpg'
> read_JPEG,file2,ocean
>
>
> window,xsize=[400],ysize=[650],title="combined"
>
> tv,sky,0,true=1
> tv,ocean,2,true=1 ;<<< This number 2 is the one I'm wondering about
>
> end
>
>
> Thanks again a million!!
> - Rebecca
Humm. Yes, what you are changing is the "position" of the
image in the window. Unfortunately, image "positions" are
pretty hard to understand, and are calculated using a
complicated formula that considers the size of the image
AND the size of the window. You might be better off looking
at the parameters X and Y, rather than the Position. Those
will be easier for you to understand, I think.
What sizes are your images? How big a window do you need
to display the two images, do you think?
You don't need those brackets around your window sizes,
by the way. You can write the command like this:
window,xsize=400,ysize=650,title="combined"
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|