comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » REBIN needs explaining
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
REBIN needs explaining [message #41929] Tue, 30 November 2004 15:32
David Fanning is currently offline  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/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Spectral Library Bundles
Next Topic: Indices ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 14:31:20 PDT 2025

Total time taken to generate the page: 1.28154 seconds