Re: JPEG image help - Easy for people who understand IDL?! [message #82389 is a reply to message #82299] |
Thu, 06 December 2012 15:58   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Rebecca C writes:
> Secondly, the oceans.jpg says in the regular file explorer of my
computer that it's 367x137 jpg file, same deal with Sky, which is how I
got those dimensions.
>
> For "rebin", I thought it would be good if the less-wide image, sky, could be the same width as ocean. I added the line
>
> sky2=rebin(sky,367,137)
>
> and then changed the later instance of "sky" to "sky2".
>
> Of course I got execution halted, (Rebin: Result dimensions must be integer factor of original dimensions). I spent an hour trying to read about Rebin, decided I don't understand and cannot seem to translate it into this homework, and tried other things.
Well, "integer" means a counting number: 1, 2, 3, etc. So, if the thing
you are trying to change the size of is, say, 20 units, then Rebin will
allow you to change its size to 40, or 60 or 80 units, but not to 367
or 137 units. :-)
If you want to change the size to some arbitrary unit, you have
to use Congrid, not Rebin.
> I really am doomed! I'm a senior in college and all of my grades over the years have been A's and A-'s, but I am taking this single course pass/fail and think I will be failing. I appreciate all of your advice, by the way, thank you immensely for your tips. :)
Well, I'm not sure about doomed. I don't think I would
be counting on an A, though, to be honest. Maybe computers
are not your thing. I'll bet you would be a terrific
Jungian psychologist! What is your major?
Look, if it gets desperate, I'll give you the three
line answer. It will probably impress the prof so much
he'll give you the P. ;-)
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.")
|
|
|