|
Re: sum of a masked array: msg#00002python.numeric.general
smpitts@xxxxxx wrote: Darren,I think you are right: from numarray.ma import * Rx = ones((2500,2500)) N = make_mask_none((2500,2500)) Rx = array(Rx,mask=N) s = sum(sum(Rx)) print s ## this works, s is of type int, rather than maskedarray (Stephen, I'm guessing you know how to pipe the error messages to a file. If you know how to do this with DOS/windows, would you write me privately and explain? Thanks for writing back so quickly, by the way.) ------------------------------------------------------- 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: sum of a masked array: 00002, smpitts |
|---|---|
| Next by Date: | efficient summation: 00002, Darren Dale |
| Previous by Thread: | Re: sum of a masked arrayi: 00002, smpitts |
| Next by Thread: | efficient summation: 00002, Darren Dale |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |