-
Notifications
You must be signed in to change notification settings - Fork 10
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 zonal statistics #44
Comments
rio-tiler has methods to extract subsets of pixel values from a dataset ( TiTiler exposes aggregations (mean, sum, min, max, median, quantiles, ...) of such parts as We should offer the same API in TiTiler-Xarray. As @vincentsarago pointed out below, rio-tiler's Better time series extraction?However, we should keep in mind that Xarray datasets are often in fact a lot better suited to timeseries extraction, when data is already stored in contiguous chunks along the time dimension or can be virtualized as such with Zarr-ish solutions, such that a single request (to TiTiler) could in principle pull an entire timeseries. Can we leverage that or should we mimmic the low-level single-timestep solution of TiTiler? Special treatment for grid cell area?Another thing to consider: When datasets are stored on regular lat/lon grids, there are simple formulae for calculating grid cell area. This can be useful for
which are common operations done on (global) climate datasets. Implementing accurate flux formulae could be a feature of statistics - but perhaps it is also better implemented in a separate algorithm / extension. |
@j08lue I think you're linking the wrong methods but XarrayReader also have the FYI this is how we do zonal-stats in titiler: |
No description provided.
The text was updated successfully, but these errors were encountered: