[GRASS-user] function to write raster info, based on r.stats

Bernardo Santos bernardo_brandaum at yahoo.com.br
Sat Mar 16 18:58:35 PDT 2019


Dear community,
I am writing a function in python that takes the results from r.stats, adds headers, and makes some transformations in the value (such as converting areas from m2 to hectares), and then writes that on an output file.
The way I am writing the output, however, is completely inneficient. Take a look here:script to edit and save statistics from raster maps in GRASS GIS, using r.stats
For small maps there is not an issue, but for large maps this may be a huge problem. Any hints on how to write files in an efficient way in python?
Thanks in advance.Best regardsBernardo Niebuhr


Links na mensagem (1)

|  |  | 
script to edit and save statistics from...
 |

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20190317/e318cc26/attachment.html>


More information about the grass-user mailing list