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

Landsat: better default bands #1169

Merged
merged 4 commits into from
Mar 20, 2023
Merged

Landsat: better default bands #1169

merged 4 commits into from
Mar 20, 2023

Conversation

adamjstewart
Copy link
Collaborator

@adamjstewart adamjstewart commented Mar 10, 2023

For Landsat, B8–B11 only exist for raw imagery and top of atmosphere reflectance, not surface reflectance. I still think it makes sense to default to surface reflectance, but we should not include bands that don't exist for it.

At least on Google Earth Engine (GEE), Landsat 1–5 Multispectral Scanner (MSS) do not have surface reflectance, so default to the band names for raw imagery.

References:

@adamjstewart adamjstewart added this to the 0.4.1 milestone Mar 10, 2023
@github-actions github-actions bot added the datasets Geospatial or benchmark datasets label Mar 10, 2023
rgb_bands = ["SR_B4", "SR_B3", "SR_B2"]


class Landsat9(Landsat8):
"""Landsat 9 Operational Land Imager (OLI) and Thermal Infrared Sensor (TIRS)."""
"""Landsat 9 Operational Land Imager (OLI-2) and Thermal Infrared Sensor (TIRS-2).""" # noqa: E501
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Black and pydocstyle require one-line docstrings to have the closing quotes on the same line, but flake8 complains that the line is too long. So we have to ignore the latter in order to appease the former.

@adamjstewart adamjstewart merged commit 8b98d31 into main Mar 20, 2023
@adamjstewart adamjstewart deleted the datasets/landsat branch March 20, 2023 19:18
@adamjstewart adamjstewart added this to In progress in SSL4EO-L via automation Mar 25, 2023
@adamjstewart adamjstewart moved this from In progress to Done in SSL4EO-L Mar 25, 2023
@adamjstewart adamjstewart removed this from Done in SSL4EO-L Mar 25, 2023
calebrob6 pushed a commit that referenced this pull request Apr 10, 2023
* Landsat: better default bands

* Correct name of sensors on Landsat 9

* black/pydocstyle/flake8 fix

* MSS does not have SR, at least on GEE
yichiac pushed a commit to yichiac/torchgeo that referenced this pull request Apr 29, 2023
* Landsat: better default bands

* Correct name of sensors on Landsat 9

* black/pydocstyle/flake8 fix

* MSS does not have SR, at least on GEE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasets Geospatial or benchmark datasets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants