On Fri, Oct 19, 2018 at 11:04 AM, Moritz Lennert <mlenn...@club.worldonline.be>
wrote:
> On 19/10/18 15:48, Michel Wortmann wrote:
>> Hi Moritz,
>> How about this:
>>
>> info = grass.parse_command('r.univar', map='raster_xyz', flags='g')
>> print(int(info['n']), int(info['null_cells']))
>
> Thanks !
>
> Yes, this is one option. I was wondering if there was any faster option
> than actually having to read the map in the whole region with r.univar,
> but probably there isn't.
>
> Moritz
> _____________________________
Moritz,
I am unable to check at the moment, but I thought off the top of my head that
r.mapcalc might have a function to report this info?
~ Eric
>
>
>
>
>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev