|
Re: rebin: msg#00073python.numeric.general
At 9:14 AM -0400 2004-08-30, Perry Greenfield wrote: On Aug 27, 2004, at 8:34 PM, Russell E. Owen wrote: Thanks! Great suggestion! I think the polished version (for nxm binning) is: from numarray.convolve import boxcar b = boxcar(a, (n,m), mode='constant', cval=0) rebinnedarray = b[n//2::n,m//2::m].copy() A rebin function would be handy since using boxcar is a bit tricky. -- Russell ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: rebin: 00073, Perry Greenfield |
|---|---|
| Next by Date: | Re: rebin (corrected): 00073, Russell E Owen |
| Previous by Thread: | Re: rebini: 00073, Perry Greenfield |
| Next by Thread: | Re: rebin (corrected): 00073, Russell E Owen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |