eurostat / gridtiler

Tiling tool for gridded data

Home Page:https://github.com/eurostat/gridtiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

this python gridtiler does not aggregate

palmajoao opened this issue · comments

https://github.com/wahlatlas/grid_data/blob/main/gridviz_tiled_csv.ipynb

Thanks for suggesting this python which I was trying to turn around to build an aggregation mode of MODE instead of the default sum.
However this code, althought also tiling does not have options to aggregate, or am I missing something @jgaffuri ?

Hi !
I could finally find some time to work on a grid tiler in Python.
See here: https://github.com/eurostat/gridtiler/tree/main/py
There is a specific function for aggregation - see the code to adapt it to your case.

There is now a possibility to tile geotiff data: see here: https://github.com/eurostat/gridtiler/tree/main/py#tiling-gridded-raster-data
using gdal first to aggregate geotiff in different modes proposed by gdal. And then tile the aggregated tiff.