[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: incremental read of gzipped matrix
From: |
Andreas Weber |
Subject: |
Re: incremental read of gzipped matrix |
Date: |
Sat, 7 Dec 2019 06:20:06 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
Am 07.12.19 um 05:44 schrieb Andreas Weber:
> is there currently a method in GNU Octave core or forge package to open
> a gziped file, read as much rows as available and return them as matrix?
I forgot the important part: Keep the file open an store the position so
that it's possible to later read the new part:
pseudo code:
fid = gzopen ("foo.gz", "r");
m = fget_matrix (fid); # returns a 50x5 matrix;
.... sleep....
# in the meanwhile another process appends data to the .gz file
m = fget_matrix (fid); # now returns a 20x5 matrix whith new data;
-- Andy