[GRASS-user] r.coin (r.report,r.stat) -> table

Achim Kisseler ak7 at jupiter.uni-freiburg.de
Mon Dec 7 06:30:41 EST 2009


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 |
(...)



More information about the grass-user mailing list