[Ilugc] Can we access the SWAP SPACE in Python

  • From: rajasuperman@xxxxxxxxx (Raja Subramanian)
  • Date: Wed, 12 Oct 2011 15:06:31 +0530

On Mon, Oct 10, 2011 at 11:38 AM, Arulalan T <arulalant at gmail.com> wrote:

I couldnt use mmap( ) function in my case, since I am accessing the binary
file like NetCDF, PP, HDF, Grads which contains data
in formats of numpy.float32, numpy.float64 and some meta data also.

These files cant read it as like normal text file object such as
fileobj.readlines( ). i.e. These files are not string type.
So I cant use mmap( ) in this case.

mmap is suitable for all types of files.

See numpy.memmap()

- Raja

Other related posts: