Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EnMAP dataset #2543

Merged
merged 3 commits into from
Feb 3, 2025
Merged

Add EnMAP dataset #2543

merged 3 commits into from
Feb 3, 2025

Conversation

adamjstewart
Copy link
Collaborator

@adamjstewart adamjstewart commented Jan 28, 2025

Formal data loader for EnMAP hyperspectral data.

Will update HySpecNet-11k to use this new metadata once this is merged.

Plotting example image from https://geoservice.dlr.de/eoc/ogc/stac/v1/collections/ENMAP_HSI_L2A/items/ENMAP01-____L2A-DT0000001053_20220611T072305Z_002_V010400_20231221T134421Z:

enmap5

@adamjstewart adamjstewart added this to the 0.7.0 milestone Jan 28, 2025
@github-actions github-actions bot added documentation Improvements or additions to documentation datasets Geospatial or benchmark datasets testing Continuous integration testing labels Jan 28, 2025
docs/api/datasets/geo_datasets.csv Outdated Show resolved Hide resolved
from .utils import Path, percentile_normalization

ALL_BANDS = list(range(1, 225))
# Remove bands strongly affected by water vapor absorption due to presence of nodata:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be common practice, at least in HySpecNet-11k and SpectralEarth

* Sufficient on-board memory to acquire 1,000 km swath length per orbit and a
total of 5,000 km per day.

If you use this dataset in your research, please cite the following papers:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically you should only cite these papers when referring to the EnMAP mission, not EnMAP data. But I couldn't find a specific citation to use for EnMAP data.


all_bands = tuple(f'B{n}' for n in ALL_BANDS)
default_bands = tuple(f'B{n}' for n in DEFAULT_BANDS)
rgb_bands = ('B48', 'B30', 'B16')
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There doesn't seem to be a general agreement on what bands to use to create a "true color" visualization of hyperspectral imagery. I was basically told to use the wavelengths closest to Sentinel-2 RGB bands, so these are the ones I chose.

@adamjstewart adamjstewart requested a review from nilsleh February 3, 2025 17:17
@nilsleh nilsleh merged commit 14c55eb into microsoft:main Feb 3, 2025
22 checks passed
@adamjstewart adamjstewart deleted the datasets/enmap branch February 3, 2025 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasets Geospatial or benchmark datasets documentation Improvements or additions to documentation testing Continuous integration testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants