Tools for fetching spatial datasets for agriculture.
pip install git+https://github.com/useyardstick/demeter.git
Tools in this library return Raster
instances. To save to disk, use the save method:
raster.save("path/to/file.tif")This library also provides helper functions for common raster operations:
Create a virtual environment (recommended):
python -m venv .venv
source .venv/bin/activate
Install development dependencies:
pip install -r requirements.dev.txt -e .
Install pre-commit hooks:
pre-commit install
Run tests:
pytest
This library includes test fixtures downloaded from real data sources, cropped
to reduce file size. To regenerate these fixtures, run the tests with the
SAVE_TEST_FIXTURES environment variable set:
SAVE_TEST_FIXTURES=1 pytest