Re: Resizing Oddity [message #37855] |
Thu, 29 January 2004 06:07 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Bringfried Stecklum writes:
> a quick look at congrid.pro reveals that for 3D arrays, linear interpolation
> is always done (INTERP and CUBIC do not have any effect). In case of
> 2D arrays, however, INTERP=0 will force congrid to behave like rebin
> which gives you the desired blocky appearance.
>
> 2nd question. What about
>
> tv,congrid(rebin(testdog,400,3,550,/sam),400,3,400),true=2
Alright! We have a winner, and have exposed a lurker
too! :-)
I...uh, didn't think about actually looking at the code.
(How many years have I been doing this!?) I have a new
rule: No posts before the 2nd cup of coffee in the morning
or after the Late News at night. :-(
Thanks for this.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Resizing Oddity [message #37859 is a reply to message #37855] |
Thu, 29 January 2004 02:00  |
Bringfried Stecklum
Messages: 75 Registered: January 1996
|
Member |
|
|
David Fanning wrote:
> I have two questions. The first is for all of you.
>
> 1. Why do I have to deconstruct my image to get what I
> expected to get with a single line of code? What is
> Congrid doing in Window 3 that is different from what
> it is doing in Window 4?
>
Dear David,
a quick look at congrid.pro reveals that for 3D arrays, linear interpolation
is always done (INTERP and CUBIC do not have any effect). In case of
2D arrays, however, INTERP=0 will force congrid to behave like rebin
which gives you the desired blocky appearance.
2nd question. What about
tv,congrid(rebin(testdog,400,3,550,/sam),400,3,400),true=2
cheers,
Bringfried
Bringfried Stecklum
Th"uringer Landessternwarte Tautenburg
Sternwarte 5, D - 07778 Tautenburg, Germany
Phone: +49-36427-863-54, FAX: +49-36427-863-29
|
|
|