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

Home » Public Forums » archive » Adding elements in an Array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Adding elements in an Array [message #85988 is a reply to message #85987] Mon, 23 September 2013 13:36 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

>
> wlandsman writes:
>
>> "Normally, REBIN uses bilinear interpolation when magnifying and neighborhood averaging when minifying."
>
> I suppose it would take me a couple of days scratching my head to figure
> this out!
>
> Do you know this to be true, or are you just taking their word for it?
> I'm not sure "neighborhood averaging" means what you appear to think it
> means. If you are right, it certainly doesn't mean what I think it
> means! And, in any case, I wouldn't bet the satellite on it until I ran
> a couple of tests. :-)

I guess you are right. Wow! I learn something every day about IDL!

IDL> a = [10, 20, 5, 6, 18, 17, 1, 30, 2]
IDL> print, rebin(a, 3)
11 13 11
IDL> print, rebin(a, 3, /sample)
10 6 1


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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Google Street Maps
Next Topic: idl: turn string value into variable name part2

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

Current Time: Sun Oct 12 06:10:21 PDT 2025

Total time taken to generate the page: 0.88111 seconds