Terragon: A Unified Framework for Earth Observation Data Cube Generation

Terragon: A Unified Framework for Earth Observation Data Cube Generation - Published in JOSS (2025)

https://github.com/drnhhl/terragon

Science Score: 95.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in JOSS metadata
  • Academic publication links
  • Committers with academic emails
    2 of 4 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software
Last synced: 4 months ago · JSON representation

Repository

Basic Info
Statistics
  • Stars: 22
  • Watchers: 2
  • Forks: 0
  • Open Issues: 3
  • Releases: 7
Created almost 2 years ago · Last pushed 5 months ago
Metadata Files
Readme License

README.md

Terragon

Terragon - Earth(Poly)gon. Create EO Minicubes from Polygons and simplify EO Data downloading.

Documentation GitHub

PyPI License

You want to download Earth Observation data but don't want to spend hours just for accessing all different APIs? Then this is for you!

We currently support these data providers: - Planetary Computer (pc) - Google Earth Engine (gee) - Copernicus Data Space Ecosystem (cdse) (not all collections supported) - Alaska Satellite Facility (asf) (not all collections supported)

Usage

Installation

Install the package via PyPi: python pip install "terragon-downloader" Optional with the dependency you want to use: python pip install "terragon-downloader[pc]"

Downloading EO data

```python import terragon import geopandas as gpd from shapely.geometry import Polygon

example polygon

gdf = gpd.GeoDataFrame(geometry=[Polygon( [(446993, 3383569), (446993, 3371569), (434993, 3371569), (434993, 3383569), (446993, 3383569)])], crs='EPSG:32616' # the dataset will receive the crs from the dataframe )

initialize backend/data source (here planetary computer)

tg = terragon.init('pc')

download data

da = tg.create(shp=gdf, # polygon in geopandas format (minicube will receive the same CRS) collection="sentinel-2-l2a", # name of the collection startdate="2021-01-01", # start date of tiles enddate="2021-01-05", # end date of tiles bands=["B02", "B03", "B04"], # bands to retrieve resolution=20, # pixel size in meter ) ``` Other data backends work with the same principle, some may require an account, check out the Demos.

Limitations

Users must provide authentication (if required) for the data providers to Terragon and must comply with their licensing agreements. Instructions on how to create accounts and the necessary information for each data provider can be found in the Demos.

This library relies on external data providers. Therefore, the reproducibility cannot be guaranteed and depends on the providers. Users should ensure they check the relevant license terms for data and services and cite them appropriately. The data offered may also vary across providers. It is important to note that each provider operates independently and utilizes different processing pipelines. This can result in various products that may not be compatible with one another, even if their collections share a similar name on the platforms of the data providers. Additionally, certain data or patches may be available from some providers but not from others. This includes mosaicking, which depends on the chosen collection and is not handled by this library.

Contribute

You found a bug or a data source is missing? We encourage you to raise an issue or provide a PR. For details, please see the contributing guideline.

We are looking for contributors to add more collections to CDSE. Please get in touch if you are interested.

License

This work is licensed under the MIT license.

Citation

If you use this work, please consider citing the following paper: Coming soon.

Acknowledgement

This work is inspired by cubo

Owner

  • Name: Adrian Höhl
  • Login: drnhhl
  • Kind: user

JOSS Publication

Terragon: A Unified Framework for Earth Observation Data Cube Generation
Published
October 14, 2025
Volume 10, Issue 114, Page 8857
Authors
Adrian Höhl ORCID
Chair of Data Science in Earth Observation, Technical University of Munich, Munich Center for Machine Learning
Paul Höhn ORCID
Chair of Data Science in Earth Observation, Technical University of Munich, Remote Sensing Technology Institute (IMF), German Aerospace Center (DLR)
Xiao Xiang Zhu ORCID
Chair of Data Science in Earth Observation, Technical University of Munich, Munich Center for Machine Learning
Editor
Jack Atkinson ORCID
Tags
remote-sensing earth-observation

GitHub Events

Total
  • Create event: 25
  • Issues event: 16
  • Release event: 5
  • Watch event: 20
  • Delete event: 18
  • Issue comment event: 11
  • Push event: 66
  • Pull request review comment event: 11
  • Pull request review event: 18
  • Pull request event: 38
  • Fork event: 1
Last Year
  • Create event: 25
  • Issues event: 16
  • Release event: 5
  • Watch event: 20
  • Delete event: 18
  • Issue comment event: 11
  • Push event: 66
  • Pull request review comment event: 11
  • Pull request review event: 18
  • Pull request event: 38
  • Fork event: 1

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 39
  • Total Committers: 4
  • Avg Commits per committer: 9.75
  • Development Distribution Score (DDS): 0.513
Past Year
  • Commits: 22
  • Committers: 3
  • Avg Commits per committer: 7.333
  • Development Distribution Score (DDS): 0.409
Top Committers
Name Email Commits
Adrian Höhl 8****l@u****m 19
Adrian Höhl a****l@t****e 10
Paul Höhn p****n@d****e 7
Paul Höhn 6****7@u****m 3
Committer Domains (Top 20 + Academic)
dlr.de: 1 tum.de: 1

Issues and Pull Requests

Last synced: 5 months ago

All Time
  • Total issues: 13
  • Total pull requests: 21
  • Average time to close issues: 5 days
  • Average time to close pull requests: 2 days
  • Total issue authors: 3
  • Total pull request authors: 3
  • Average comments per issue: 0.69
  • Average comments per pull request: 0.05
  • Merged pull requests: 17
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 13
  • Pull requests: 20
  • Average time to close issues: 5 days
  • Average time to close pull requests: 2 days
  • Issue authors: 3
  • Pull request authors: 3
  • Average comments per issue: 0.69
  • Average comments per pull request: 0.05
  • Merged pull requests: 16
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • AtmaMani (8)
  • drnhhl (3)
  • usethedata (2)
Pull Request Authors
  • drnhhl (17)
  • PaulH97 (3)
  • jatkinson1000 (1)
Top Labels
Issue Labels
bug (1)
Pull Request Labels
enhancement (5) bug (4) documentation (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 136 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 7
  • Total maintainers: 1
pypi.org: terragon-downloader

Create EO Minicubes from Polygons and simplify EO Data downloading.

  • Homepage: https://github.com/drnhhl/terragon
  • Documentation: https://readthedocs.org
  • License: MIT License Copyright (c) 2024 Adrian Höhl Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 0.3.0
    published 5 months ago
  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 136 Last month
Rankings
Dependent packages count: 10.3%
Average: 34.2%
Dependent repos count: 58.1%
Maintainers (1)
Last synced: 5 months ago