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

Parsing of some 2024 landsat sceneids fails #80

Open
chris-aeviator opened this issue Aug 23, 2024 · 0 comments
Open

Parsing of some 2024 landsat sceneids fails #80

chris-aeviator opened this issue Aug 23, 2024 · 0 comments

Comments

@chris-aeviator
Copy link

chris-aeviator commented Aug 23, 2024

I'm unable to parse sceneid's from planetary computer on landsat 2 collections.

>>> from rio_tiler_pds.landsat.utils import sceneid_parser  as ls8_sceneid_parser 
# works
>>> ls8_sceneid_parser('LC08_L1TP_016037_20170813_20170814_01_RT')
{'sensor': 'C', 'satellite': '08', 'processingCorrectionLevel': 'L1TP', 'path': '016', 'row': '037', 'acquisitionYear': '2017', 'acquisitionMonth': '08', 'acquisitionDay': '13', 'processingYear': '2017', 'processingMonth': '08', 'processingDay': '14', 'collectionNumber': '01', 'collectionCategory': 'RT', 'scene': 'LC08_L1TP_016037_20170813_20170814_01_RT', 'date': '2017-08-13', '_processingLevelNum': '1', 'category': 'standard', 'sensor_name': 'oli-tirs', '_sensor_s3_prefix': 'oli-tirs', 'bands': ('B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'B9', 'B10', 'B11', 'QA_PIXEL', 'QA_RADSAT', 'SAA', 'SZA', 'VAA', 'VZA')}

# does not work (https://planetarycomputer.microsoft.com/api/stac/v1/collections/landsat-c2-l2/items/LC08_L2SP_192024_20240513_02_T1) 
>>> ls8_sceneid_parser('LC08_L2SP_192023_20240801_02_T1')
 *** rio_tiler_pds.errors.InvalidLandsatSceneId: Could not match LC08_L2SP_192023_20240801_02_T1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant