From: Christopher B. <Chr...@no...> - 2006-11-09 22:53:29
|
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 Chr...@no... |