<div>On Fri, Oct 19, 2018 at 11:04 AM, Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be" class="" style="font-size: 1em;">mlennert@club.worldonline.be</a>> wrote:
<br />
</div>
<div>
<blockquote class="protonmail_quote" type="cite">On 19/10/18 15:48, Michel Wortmann wrote:
<br />> Hi Moritz,
<br />> How about this:
<br />>
<br />> info = grass.parse_command('r.univar', map='raster_xyz', flags='g')
<br />> print(int(info['n']), int(info['null_cells']))
<br />
<br />Thanks !
<br />
<br />Yes, this is one option. I was wondering if there was any faster option
<br />than actually having to read the map in the whole region with r.univar,
<br />but probably there isn't.
<br />
<br />Moritz
<br />_____________________________</blockquote>
<div><span style="background-color: rgba(255, 255, 255, 0);">Moritz,</span>
</div>
<div><span style="background-color: rgba(255, 255, 255, 0);"><br /></span>
</div>
<div><span style="background-color: rgba(255, 255, 255, 0);">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?</span>
</div>
<div><span style="background-color: rgba(255, 255, 255, 0);"><br /></span>
</div>
<div id="protonmail_signature_block" class="protonmail_signature_block"><span style="font-weight: 700; background-color: rgba(255, 255, 255, 0);">~ Eric </span>
</div>
<blockquote class="protonmail_quote" type="cite">
<br />
</blockquote>
<blockquote class="protonmail_quote" type="cite">
<br />
</blockquote>
<blockquote class="protonmail_quote" type="cite">
<br />
</blockquote>
<blockquote class="protonmail_quote" type="cite">
<br />
</blockquote>
<blockquote class="protonmail_quote" type="cite">
<br />
</blockquote>
</div>