Re: [Numpy-discussion] Question about numpy.ma masking

2010-05-10 Thread Gökhan Sever
On Sun, May 9, 2010 at 2:42 PM, Eric Firing wrote: > > The mask attribute can be a full array, or it can be a scalar to > indicate that nothing is masked. This is an optimization in masked > arrays; it adds complexity, but it can save space and/or processing > time. You can always access a full

Re: [Numpy-discussion] Question about numpy.ma masking

2010-05-09 Thread Eric Firing
On 05/09/2010 09:01 AM, Gökhan Sever wrote: > > > On Fri, May 7, 2010 at 3:28 PM, Pierre GM > wrote: > > On May 4, 2010, at 8:38 PM, Gökhan Sever wrote: > > Hello, > > > > I have the following arrays read as masked array. > > > > I[10]: bas

Re: [Numpy-discussion] Question about numpy.ma masking

2010-05-09 Thread Gökhan Sever
On Fri, May 7, 2010 at 3:28 PM, Pierre GM wrote: > On May 4, 2010, at 8:38 PM, Gökhan Sever wrote: > > Hello, > > > > I have the following arrays read as masked array. > > > > I[10]: basic.data['Air_Temp'].mask > > O[10]: array([ True, False, False, ..., False, False, False], dtype=bool) > > > >

Re: [Numpy-discussion] Question about numpy.ma masking

2010-05-09 Thread Pierre GM
On May 4, 2010, at 8:38 PM, Gökhan Sever wrote: > Hello, > > I have the following arrays read as masked array. > > I[10]: basic.data['Air_Temp'].mask > O[10]: array([ True, False, False, ..., False, False, False], dtype=bool) > > [12]: basic.data['Press_Alt'].mask > O[12]: False > > I[13]: len

[Numpy-discussion] Question about numpy.ma masking

2010-05-04 Thread Gökhan Sever
Hello, I have the following arrays read as masked array. I[10]: basic.data['Air_Temp'].mask O[10]: array([ True, False, False, ..., False, False, False], dtype=bool) [12]: basic.data['Press_Alt'].mask O[12]: False I[13]: len basic.data['Air_Temp'] -> len(basic.data['Air_Temp']) O[13]: 1758