Re: [Numpy-discussion] C-api and masked arrays

2010-03-01 Thread Matt Knox
Martin Raspaud smhi.se> writes: > We are using at the moment a c extension which should manipulate masked > arrays. > What we do is to fill the masked array with a given value (say 65535 if we run > uint16 arrays), do the manipulation, and convert back to masked arrays when we > go back to pytho

Re: [Numpy-discussion] C-api and masked arrays

2010-03-01 Thread Pierre GM
On Mar 1, 2010, at 10:39 AM, Martin Raspaud wrote: > Hi, > > We're talking map projections, so that means that the values will move around, > including masked ones... > > So filling the array with a given value is a way of projecting the array and > the > mask in one shot... OK then. Just make

Re: [Numpy-discussion] C-api and masked arrays

2010-03-01 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pierre GM skrev: > On Mar 1, 2010, at 10:04 AM, Martin Raspaud wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Hi all, >> >> We are using at the moment a c extension which should manipulate masked >> arrays. >> What we do is to fill t

Re: [Numpy-discussion] C-api and masked arrays

2010-03-01 Thread Pierre GM
On Mar 1, 2010, at 10:04 AM, Martin Raspaud wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi all, > > We are using at the moment a c extension which should manipulate masked > arrays. > What we do is to fill the masked array with a given value (say 65535 if we run > uint16 arrays)

[Numpy-discussion] C-api and masked arrays

2010-03-01 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, We are using at the moment a c extension which should manipulate masked arrays. What we do is to fill the masked array with a given value (say 65535 if we run uint16 arrays), do the manipulation, and convert back to masked arrays when we go ba