[Numpy-discussion] R: R: fast numpy.fromfile skipping data chunks

Andrea Cimatoribus Andrea.Cimatoribus at nioz.nl
Wed Mar 13 10:37:54 EDT 2013


Indeed, but that offset "it should be a multiple of the byte-size of dtype" as the help says.
Indeed, this is silly.

________________________________________
Da: numpy-discussion-bounces at scipy.org [numpy-discussion-bounces at scipy.org] per conto di Nathaniel Smith [njs at pobox.com]
Inviato: mercoledì 13 marzo 2013 15.32
A: Discussion of Numerical Python
Oggetto: Re: [Numpy-discussion] R: fast numpy.fromfile skipping data chunks

On Wed, Mar 13, 2013 at 2:18 PM, Andrea Cimatoribus
<Andrea.Cimatoribus at nioz.nl> wrote:
> This solution does not work for me since I have an offset before the data that is not a multiple of the datatype (it's a header containing various stuff).

np.memmap takes an offset= argument.

-n
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion at scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion



More information about the NumPy-Discussion mailing list