-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
Add zones in t.rast.univar #1474
Add zones in t.rast.univar #1474
Conversation
- Use open() instead of file() - Use a bytes-like object for ofile.write()
Best if a 'zones' options is integrated in the main function print_gridded_dataset_univar_statistics() and let the main code of t.rast.univar clean
…ar_statistics_over_zones()
3da2707
to
99d8b4a
Compare
(would you mind to separate out 5e00142 (Quick-fix for d.correlate.py) into another PR?) |
Sounds interesting, Nikos :) AFAIU, this "non-PR" PR adds r.univar's zones functionality to t.rast.univar. Does it use only one raster map as zones or a time series of zones? If the first case, how does it differ from the add-on v.strds.stats that estimates zonal stats for a vector of areas? I'm in for testing! Would you mind providing an example? |
You can convert PR into draft. |
Only one (integer CELL) categorical or thematic (you name it) map, exactly as in
Just run a normal |
The Travis test shows:
|
Maybe something like:
works? |
@veroandreo is right. Some more tips for
|
@NikosAlexandris OK to close this in favor of #2588 ? |
I am taking the liberty to close this one as it is superseded by #2588 |
This is NOT a real pull request. Rather a prototype idea.
Not extensively tested, no real tests written.