Re: [Numpy-discussion] Extract groups of/individual bit values from UInt16 array

2010-10-12 Thread Philip Austin
On 10/12/2010 9:14 PM, Pinner, Luke wrote: > I'm working with some MODIS satellite imagery. MODIS data includes a > quality flag mask. For the particular dataset I'm working with, this is > a two dimensional unsigned 16 bit integer array. The quality flags are > stored as one or more bits in each

Re: [Numpy-discussion] numpy.ndarrays as C++ arrays (wrapped with boost)

2007-09-11 Thread Philip Austin
Alexander Schmolck writes: > So my question is: might it make sense to use (a slightly wrapped) > numpy.ndarray, and if so is some code already floating around for that (on > first glance it seems like there's a bit of support for the obsolete Numeric > package in boost, but none for the newer

Re: [Numpy-discussion] Anyone have a well-tested SWIG-based C++ STL valarray <=> numpy.array typemap to share?

2007-09-05 Thread Philip Austin
Christopher Barker writes: > > I've seen that -- it does look like all we'd need is the header. > > So, can one: > > - create a Multiarray from an existing data pointer? > > - get the data pointer for an existing Multiarray? > > I think that's what I'd need to make the numpy arr