Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] r.univar/t.rast.univar: allow r-flag also with zones input #4576

Open
ninsbl opened this issue Oct 23, 2024 · 0 comments · May be fixed by #4577
Open

[Feat] r.univar/t.rast.univar: allow r-flag also with zones input #4576

ninsbl opened this issue Oct 23, 2024 · 0 comments · May be fixed by #4577
Labels
enhancement New feature or request
Milestone

Comments

@ninsbl
Copy link
Member

ninsbl commented Oct 23, 2024

Is your feature request related to a problem? Please describe.
When computing univariate statistics for zones (e.g. a bunch of administrative units) over a remote sensing product, that covers only parts of my general area of interest (i.e. the administrative units in question), processing takes unneccessary time because in r.univar the zones option and the r-flag are mutually exclusive.

That limitation is handed down to t.rast.univar.

Describe the solution you'd like
Idealy, it should be possible to combine the r-flag and the zones option in r.univar and t.rast.univar for use cases as above.

Describe alternatives you've considered
The named limitation can be worked around by not using the r-flag and defining the computational region accordingly instead (e.g. g.region -p raster=input_map align=zones_map), before r.univar is run

In t.rast.univar that can be even facilitated using a or using a compute environment.

Additional context
The limitation is particularly painful when processing many maps in a time series, while setting the region for a single r.univar call should be OK. So the suggested work-around for t.rast.univar may thus be sufficient to fix this issue.

@ninsbl ninsbl added the enhancement New feature or request label Oct 23, 2024
@ninsbl ninsbl added this to the 8.5.0 milestone Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant