[GRASS-dev] quickest way to test whether a raster contains any non-null values in the current computational region ?
mlennert at club.worldonline.be
Fri Oct 19 07:04:01 PDT 2018
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']))
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.
More information about the grass-dev