kapadia / usgs

Client library for interfacing with USGS datasets
http://kapadia.github.io/usgs/
ISC License
110 stars 38 forks source link

Missing Vendor Product and Tile IDs in the updated USGS api #60

Open abhiramp1 opened 3 years ago

abhiramp1 commented 3 years ago

Also, I did try to download sentinel-2 imagery using USGS API. Previously I was getting Vendor Product ID and Vendor Tile ID. since the update of the new 0.3.0 version of the USGS API, I cannot find both the "Vendor Product ID" and "Vendor Tile ID," Please suggest how I can access this?

{'browse': [{'id': '5e83a42ca2265449', 'browseRotationEnabled': None, 'browseName': 'Standard Browse', 'browsePath': 'https://ims.cr.usgs.gov/browse/s2/s2a/2016/12/21/L1C_T14SPH_A007831_20161221T172206.jpg', 'overlayPath': 'https://ims.cr.usgs.gov/wms.py?service=WMS&request=GetMap&map=sentinel_2a&layers=L1C_T14SPH_A007831_20161221T172206', 'overlayType': 'ims_wms', 'thumbnailPath': 'https://ims.cr.usgs.gov/thumbnail/s2/s2a/2016/12/21/L1C_T14SPH_A007831_20161221T172206.jpg'}], 'cloudCover': '99.51860', 'entityId': '853993', 'displayId': 'L1C_T14SPH_A007831_20161221T172206', 'orderingId': None, 'metadata': [], 'hasCustomizedMetadata': None, 'options': {'bulk': True, 'download': True, 'order': True, 'secondary': False}, 'selected': {'bulk': False, 'compare': False, 'order': False}, 'spatialBounds': {'type': 'Polygon', 'coordinates': [[[-97.8632824, 37.8353021], [-97.8632824, 38.8433146], [-96.5832678, 38.8433146], [-96.5832678, 37.8353021], [-97.8632824, 37.8353021]]]}, 'spatialCoverage': {'type': 'Polygon', 'coordinates': [[[-97.8632824, 37.853955], [-96.6159, 37.8353021], [-96.5832678, 38.8239923], [-97.8477095, 38.8433146], [-97.8632824, 37.853955]]]}, 'temporalCoverage': {'endDate': '2016-12-21 00:00:00-06', 'startDate': '2016-12-21 00:00:00-06'}, 'publishDate': '2017-01-07 06:38:42-06'}

kapadia commented 3 years ago

@abhiramp1 - I've not used this library to access Sentinel-2 imagery, but I have also noticed that some responses have changed. It might be that they deprecated the keys you typically use. You might be able to download S2 imagery using another ID in the response posted above.