[GRASS-dev] Parsing output of r.category which includes labels
mlennert at club.worldonline.be
Tue Aug 21 03:57:01 PDT 2018
On 21/08/18 12:47, Stefan Blumentrath wrote:
> Hi Nikos,
> If you are interested in dictionary output you could do:
> category_labels = grass.parse_command('r.category', map='youmap', delimiter='\t')
Right, nice solution !
For those not very familiar with the scripting library: the "delimiter"
option here is an option to parse_command, not to r.category. It decides
which delimiter parse_command should use for deciding what is a key and
what is a value.
More information about the grass-dev