Skip to main content

EuroCropsML is a pre-processed and ready-to-use machine learning dataset for crop type classification of agricultural parcels in Europe. It consists of a total of 706,683 Sentinel-2 multi-class labeled data points with a total of 176 distinct classes. Each data point contains an annual time series of per parcel median pixel values of Sentinel-2 L1C (top-of-atmosphere) reflectance data for the year 2021. The dataset is based on Version 9 of EuroCrops, an open-source collection of remote sensing reference data.

For EuroCropsML, we acquired and aggregated data for the following countries:

Country Number of distinct classes Total number of datapoints for Sentinel-2
Estonia 127 175,906
Latvia 103 431,143
Portugal 79 99,634

Spatial distribution of labels within Estland and Latvia. Spatial distribution of labels within Portugal.

The distribution of class labels differs substantially between the regions of Estonia, Latvia, and Portugal. This makes transferring knowledge gained in one region to another region quite challenging, especially if only few labeled data points are available. Therefore, this dataset is particularly suited to explore transfer-learning methods for few-shot crop type classification.

The data acquisition, aggregation, and pre-processing steps are schematically illustrated below. A more detailed description is given in the dataset section of our documentation.

Data Acquisition Pipeline.

Getting Started

eurocropsml is a Python package hosted on PyPI.

Installation

The recommended installation method is pip-installing into a virtual environment:

$ python -Im pip install eurocropsml

Usage Guide

The quickest way to interact with the eurocropsml package and get started is to use the EuroCropsML dataset is via the provided command-line interface (CLI).

For example, to get help on available commands and options, use

$ eurocropsml-cli --help

To show the currently used (default) configuration for the eurocropsml dataset CLI, use

$ eurocropsml-cli datasets eurocrops config

To download the EuroCropsML dataset as currently configured, use

$ eurocropsml-cli datasets eurocrops download

Alternatively, the dataset can also be manually downloaded from our Zenodo repository.

A comprehensive documentation of the CLI can be found in the CLI Reference section of our documentation.

For a complete example use-case demonstrating the ready-to-use EuroCropsML dataset in action, please refer to the project's associated official repository for benchmarking meta-learning algorithms.

Project Information

The eurocropsml code repository is released under the MIT License. Its documentation lives at Read the Docs, the code on GitHub and the latest release can by found on PyPI. It is tested on Python 3.10+.

If you would like to contribute to eurocropsml you are most welcome. We have written a short guide to help you get started.

Background

The EuroCropsML dataset and associated eurocropsml code repository are provided and developed as part of the joint PretrainAppEO research project by the chair of Remote Sensing Technology at Technical University Munich and dida.

The goal of the project is to investigate methods that rely on the approach of pre-training and fine-tuning machine learning models in order to improve generalizability for various standard applications in Earth observation and remote sensing.

The ready-to-use EuroCopsML dataset is developed for the purpose of improving and benchmarking few-shot crop type classification methods.

EuroCropsML is based on Version 9 of EuroCrops, an open-source collection of remote sensing reference data for agriculture from countries of the European Union.

Citation

If you use the EuroCropsML dataset or eurocropsml code repository in your research, please cite our project as follows:

Plain text

Reuss, J., & Macdonald, J. (2024). EuroCropsML [dataset]. Zenodo. https://doi.org/10.5281/zenodo.10629610

Bibtex

@misc{reuss_macdonald_eurocropsml_2024,
  author       = {Reuss, Joana and Macdonald, Jan},
  title        = {EuroCropsML},
  year         = 2024,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.10629610},
  url          = {https://doi.org/10.5281/zenodo.10629610}
}

Acknowledgments & Funding

The PreTrainAppEO research project is funded by the German Space Agency at DLR on behalf of the Federal Ministry for Economic Affairs and Climate Action (BMWK).

Metadata

Release files for eurocropsml 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eurocropsml 0.4.1
File Size Uploaded
eurocropsml-0.4.1.tar.gz 922.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eurocropsml 0.4.1
File Interpreter ABI Platform
eurocropsml-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / eurocropsml-0.4.1.tar.gz

Download URL eurocropsml-0.4.1.tar.gz
Size 922.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b3060863caad27632b4bc5bbd9985c311ebe8732f0b08153edba1d808911e32f
BLAKE2b-256 checksum
How to use checksums
d8c057a2887057cae9dd739a126b48f7f7d381b606b95ab79e93c5860bf2beac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2025.

Transparency log

Release files / eurocropsml-0.4.1-py3-none-any.whl

Download URL eurocropsml-0.4.1-py3-none-any.whl
Size 100.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3450862a5b07842529ea690cc77159163fac99964d9ba9691e2f2a0d686e1a83
BLAKE2b-256 checksum
How to use checksums
ab691c2d382b6b352255622db8dbe697b030b36d0f2b6aacaaf4d0157eb21ee9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page