Skip to content

useyardstick/demeter

Repository files navigation

Demeter

Tools for fetching spatial datasets for agriculture.

Installation

pip install git+https://github.com/useyardstick/demeter.git

Usage

Fetching raster datasets

Tools in this library return Raster instances. To save to disk, use the save method:

raster.save("path/to/file.tif")

Raster helpers

This library also provides helper functions for common raster operations:

Fetching vector datasets

Development

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

Test fixtures

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

About

Tools for fetching spatial datasets for agriculture.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages