REBIN needs explaining [message #41929] |
Tue, 30 November 2004 15:32 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Hi Folks,
Can someone (Craig?) explain this to me.
Consider:
v = [0, 10]
I understand this:
Print, rebin(v, 20, /Sample)
0 0 0 0 0 0 0 0 0
0 10 10 10 10 10 10 10 10
10 10
What I don't understand is this:
Print, rebin(v, 20)
0 1 2 3 4 5 6 7 8
9 10 10 10 10 10 10 10 10
10 10
Aren't there an awful lot of 10s in there!? Why doesn't this come
out like this:
0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8
9 9 10 10
I notice REBIN, CONGRID, and even CMCONGRID does this same thing. Why?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|