[Numpy-discussion] Reading a big netcdf file

Christopher Barker Chris.Barker@noaa....
Thu Aug 4 12:04:16 CDT 2011


On 8/3/11 3:56 PM, Gökhan Sever wrote:
> Back to the reality. After clearing the cache using Warren's suggestion:
>
> In [1]: timeit -n1 -r1 a = np.fromfile('temp.npa', dtype=np.uint16)
> 1 loops, best of 1: 7.23 s per loop

yup -- that cache sure can be handy!

-Chris


-- 
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