Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use region env for r3.univar
Browse files Browse the repository at this point in the history
ninsbl committed Oct 23, 2024
1 parent 2b65305 commit 8877517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/grass/temporal/univar_statistics.py
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ def compute_univar_stats(registered_map_info, stats_module, fs, rast_region=Fals
)

stats_module.inputs.map = id
if rast_region and stats_module.inputs.zones:
if rast_region and (stats_module.inputs.zones or stats_module.name == "r3.univar"):
stats_module.env = gs.region_env(raster=id)
stats_module.run()

0 comments on commit 8877517

Please sign in to comment.