-
Notifications
You must be signed in to change notification settings - Fork 8
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 Landsat collection 2, level 1 support #42
Conversation
rio_tiler_pds/landsat/utils.py
Outdated
# S3 paths always use oli-tirs | ||
_sensor_name = sensor_name | ||
if _sensor_name in ["oli", "tirs"]: | ||
_sensor_name = "oli-tirs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we sure about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I'm referring to. There's no oli
or tirs
folder here
> aws s3 ls s3://usgs-landsat/collection02/level-1/standard/ --request-payer
PRE etm/
PRE mss/
PRE oli-tirs/
PRE tm/
2020-08-26 19:35:23 1313 catalog.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but you also said you didn't find any oli
only scenes, right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did, and I added them to the tests
https://github.com/cogeotiff/rio-tiler-pds/pull/42/files#diff-be27e3477e1b5abde00cf4e303a5eeec6d0f57689c97a9f9c7468fe48262e3d8R178-R227
Plus a tirs
-only scene
https://github.com/cogeotiff/rio-tiler-pds/pull/42/files#diff-be27e3477e1b5abde00cf4e303a5eeec6d0f57689c97a9f9c7468fe48262e3d8R278-R302
rio_tiler_pds/landsat/utils.py
Outdated
meta["sensor_name"] = sensor_name | ||
meta["_sensor_name"] = _sensor_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we rename _sensor_name
to sensor_dir_name
? it's a bit confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about _sensor_s3_prefix
? 😄
e162571
to
191ad04
Compare
Closes #37
This is the second half of providing Landsat collection 2 support; the first half being #38.