Skip to content

Commit

Permalink
use region env for r3.univar
Browse files Browse the repository at this point in the history
  • Loading branch information
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
Expand Up @@ -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()

Expand Down

0 comments on commit 8877517

Please sign in to comment.