Hi all, I wrote an awk-sed-script (for my specific situation) to do it...
Afterwards I recognized, that it is now general enough. So I used a combination of r.mapcalc "preprocessing" and r.stats and combined the result within the database. All the best, Achim Achim Kisseler schrieb: > Moin grass-user, > > I'd like to get the result of r.coin into a table-format to import it in > a database. Before I start fighting with sed and awk: > Do someone know a faster way? > > Thanks in advance, > Achim > > > PS: > Also r.report or r.stat would work, but r.coin most looks like a table > > it looks like: > (..header...) > | cat# | 1 | 2 | 3 | 4 | 6 | > 9 | w cat 0 | w/o cat 0 | > |--------------------------------------------------------------------------------------------------------| > |a -1610000 | 3.26 | 0.00 | 0.00 | 735.20 | 0.00 > | 0.00 | 738.46 | 738.46 | > |f -1250000 | 6.50 | 0.00 | 0.00 | 0.00 | 0.00 > | 0.00 | 6.50 | 6.50 | > |_ -1090000 | 0.82 | 0.00 | 0.00 | 0.00 | 0.00 > | 0.00 | 0.82 | 0.82 | > |b -1070000 | 0.00 | 0.00 | 19.12 | 0.00 | 0.00 > | 0.00 | 19.12 | 19.12 | > |a -1050000 | 0.00 | 0.00 | 6.36 | 0.00 | 0.00 > | 0.00 | 6.36 | 6.36 | > (...) > > _______________________________________________ > grass-user mailing list > grass-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user _______________________________________________ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user