"Slicing" recarrays
Christopher Barker
Chris.Barker at noaa.gov
Wed Nov 8 15:37:13 CST 2006
Travis Oliphant wrote:
> How about
>
> newdtype = N.dtype([('both','2i4'),('','b1')])
> res = data.view(newdtype)['both']
That works great! thanks,
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
More information about the Numpy-discussion
mailing list