[GRASS-git] [OSGeo/grass] aaa5f6: r.univar: print correct cells value for zones in s...
Stefan Blumentrath
noreply at github.com
Wed May 17 07:39:42 PDT 2023
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: aaa5f6def0af133626d85e890b1fdee9a497614b
https://github.com/OSGeo/grass/commit/aaa5f6def0af133626d85e890b1fdee9a497614b
Author: Stefan Blumentrath <stefan.blumentrath at gmx.de>
Date: 2023-05-17 (Wed, 17 May 2023)
Changed paths:
M raster/r.univar/stats.c
M raster/r.univar/testsuite/test_r_univar.py
Log Message:
-----------
r.univar: print correct cells value for zones in shell script style (#2959)
When r.univar is called with zones and the g-flag for shell script output, the "cells" attribute gets always the number of cells in the first zone encountered, which does not correspond to the actual number of cells in the zone (or in the region in total). This corrects the value printed and adjusts the tests accordingly.
More information about the grass-commit
mailing list