[GRASS-user] How to grep basic statistics from a vector ascii (x, y, z) file and export in a new ascii?

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Sun Jan 6 03:59:15 EST 2008


Thank you all for your replies!

On Sat, 2008-01-05 at 15:12 -0800, David Finlayson wrote:
> Your task sounds like it would be best done by a small script or C
> program. Just read the data in a line-at-a-time and check if the
> current line is larger than the previously stored line. At the end of
> the file, print out the largest line (to a file if you have multiple
> results to store). Probably 5 or 6 lines of Perl/Python at most and
> you would be able to read arbitrarily huge files (millions of rows).
> Most other solutions would introduce complexity or unnecessary
> overhead. For lidar data, you may not have enough RAM to hold the
> whole file in memory and the last thing you want to do is attach
> topology to each point before you manipulate it.
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
-- 
Nikos Alexandris
.
Department of Remote Sensing & Landscape Information Systems
Faculty of Forestry & Environmental Sciences, Albert-Ludwigs-University Freiburg
.
Tel.  +49 (0) 761 203 3697 / Fax.  +49 (0) 761 203 3701 / Skype: Nikos.Alexandris
.
Address: Tennenbacher str. 4, D-79106 Freiburg i. Br., Germany
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20080106/612b8ce7/attachment.bin


More information about the grass-user mailing list