[Numpy-discussion] Subdividing NumPy array into Regular Grid

2014-10-26 Thread Artur Bercik
I have a rectangle with the following coordinates: import numpy as np ulx,uly = (110, 60) ##uppper left lon, upper left lat urx,ury = (120, 60) ##uppper right lon, upper right lat lrx, lry = (120, 50) ##lower right lon, lower right lat llx, lly = (110, 50) ##lower left lon, lower left lat I want

Re: [Numpy-discussion] Extract Indices of Numpy Array Based on Given Bit Information

2014-10-18 Thread Artur Bercik
Dear Julian Taylor Thank you very much, I really appreciated your codes. On Sat, Oct 18, 2014 at 9:28 PM, Julian Taylor < jtaylor.deb...@googlemail.com> wrote: > On 18.10.2014 14:14, Artur Bercik wrote: > > > > > > On Sat, Oct 18, 2014 at 9:00 PM, Artur Bercik &g

Re: [Numpy-discussion] Extract Indices of Numpy Array Based on Given Bit Information

2014-10-18 Thread Artur Bercik
On Sat, Oct 18, 2014 at 9:00 PM, Artur Bercik wrote: > > > On Sat, Oct 18, 2014 at 8:28 PM, Julian Taylor < > jtaylor.deb...@googlemail.com> wrote: > >> On 18.10.2014 07:58, Artur Bercik wrote: >> > Dear Python and Numpy Users: >> > >> > M

Re: [Numpy-discussion] Extract Indices of Numpy Array Based on Given Bit Information

2014-10-18 Thread Artur Bercik
On Sat, Oct 18, 2014 at 8:28 PM, Julian Taylor < jtaylor.deb...@googlemail.com> wrote: > On 18.10.2014 07:58, Artur Bercik wrote: > > Dear Python and Numpy Users: > > > > My data are in the form of '32-bit unsigned integer' as follows: > > > > myDa

[Numpy-discussion] Extract Indices of Numpy Array Based on Given Bit Information

2014-10-17 Thread Artur Bercik
Dear Python and Numpy Users: My data are in the form of '32-bit unsigned integer' as follows: myData = np.array([1073741824, 1073741877, 1073742657, 1073742709, 1073742723, 1073755137, 1073755189,1073755969],dtype=np.int32) I want to get the index of my data where the following occurs: Bit No.