[Numpy-discussion] numpy masked array oddity
Christopher Barker
Chris.Barker@noaa....
Mon May 5 12:46:55 CDT 2008
Robert Kern wrote:
> I don't know the reason why it's not an ndarray, but you don't have to
> copy the data again to get one:
>
> c = ma.compressed().view(numpy.ndarray)
would:
c - numpy.asarray(ma.compressed())
work too?
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov
More information about the Numpy-discussion
mailing list