Has anyone else used r.stats as a quiet module in a GRASS-python script?
As part of my program I'm using:
grass.run_command("r.stats", flags='l', input=<file>, output=<*.csv file>, fs=',')
I'm using the 'l' flag here to print out category labels. If I change the flags to 'lq' r.stats does not produce the specified *.csv file. If I use the flags as '-q', r.stats runs as a quiet module, but it only creates a *.csv file with one row that describes the category values. For my output, I need both category values and their respective labels.
Any ideas?
