Re: JPEG image help - Easy for people who understand IDL?! [message #82397 is a reply to message #82299] |
Thu, 06 December 2012 14:57   |
Rebecca C
Messages: 5 Registered: December 2012
|
Junior Member |
|
|
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
|
|
|