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 #86000 is a reply to message #85994] Mon, 23 September 2013 14:35 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
OK, here is why I think the behavior of REBIN is intuitive. Like all good IDL explanations it (vaguely) involves HISTOGRAM.

ReBin means to change the binning size. And, as with HISTOGRAM, when you change the binning size, the total sum over all bins must remain the same. When you REBIN a 512 x 512 array to 256 x 256 array, the total amount of "stuff" in the pixels is conserved; it is just distributed over bigger pixels. (To answer Mat's question -- REBIN does *not* do linear interpolation when minifying, it does averaging.)

This gives me a chance to plug one of my favorite programs -- FREBIN
http://idlastro.gsfc.nasa.gov/ftp/pro/image/frebin.pro
This program also conserves the "stuff" in the array, but allows new bin sizes that are not necessarily an integral fraction of the old. --Wayne
[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:14:11 PDT 2025

Total time taken to generate the page: 0.23885 seconds