![](https://secure.gravatar.com/avatar/4049498c84d4a7a8f5f5afa5b86c4d2b.jpg?s=120&d=mm&r=g)
6 Aug
2008
6 Aug
'08
1:18 p.m.
Travis E. Oliphant a écrit :
More directly:
Use numpy.memmap --- look at the docstring for example use and help on all the arguments available. But, something like this (untested):
a = numpy.memmap(<filename>, mode='r', dtype=float, shape=(nx,ny,nz)) b = a[:nx/4,:ny/4,:nz/4] b.tofile(<somefilename>)
Should work... Travis: tons of thanks ! :-))
Cheers, -- Fred