Tile benchmarking using titiler-xarray and titiler-pgstac.
It is recommended to run this project on the VEDA JupyterHub if using datasets generated in 01-generate-datasets/
. See instructions on getting an account on the VEDA JupyterHub docs page.
It is the intention of this project that it can also be used to benchmark tiling for arbitrary zarr datasets. Examples are forthcoming.
Use the requirements.txt
or environment.yaml
to setup a python environment.
conda|mamba env create -f environment.yaml
conda|mamba activate tile-benchmarking
01-generate-datasets/
This directory includes notebooks for generating:
You can skip this directory entirely unless you are interested in how the datasets were generated and / or want to modify them for any reason.
02-run-tests/
See the notebooks in 02-run-tests/
for examples on how to run tests.
At this time, tests exists for timing tile code for xarray and COGs.
TODO: Provide example of how to run a test on a new dataset. TODO: Run many tests and provide examples of how to report results. TODO: Add tests to run against API TODO: Add sub-tile code block timings
03-e2e/
Instructions on how to run e2e tests for titiler-xarray with locust and siege.
cdk/
You can skip this directory unless you are interested in (re)deploying the pgSTAC database for this project.
The cdk/ directory at the root of this repository hosts the code for deploying a pgSTAC database into AWS RDS.
See eoapi-cdk if you are interested in the deployment of pgSTAC using CDK.
helpers/
Python functions used more than once in this project are stored here.
titiler_xarray/
A git submodule of the titiler-xarray project in order to profile that codebase.