HLS STAC Problem
Posted: Fri Sep 06, 2024 11:00 am America/New_York
There seems to be an issue with the HLS STAC that started a couple days ago. A minimal reproducible example is:
This search finds 22 items and returns the error:
The search does work if the date range is shortened. In the above example, if I shorten to 2013-07-01/2013-09-20, then it finds 20 items and does not get the error. Likewise, if I add 'limit': 23 to params, then the first search works. However, this doesn't seem to be extensible to get the full archive as it was before. For example, if I change the date range to 2013-07-01/2024-07-01 and 'limit': 2000, the search finds 1040 items but fails with the same error.
Further, the limit where this occurs seems to change by ___location. In another ___location the issue occurred at 100 items. There was a recent post about the name of the collection, I tried both 'HLSL30_2.0' and 'HLSL30.v2.0', both produce the same results.
Finally (perhaps a separate issue), it appears that the 'metadata' asset has been removed from the items. The metadata link was the only way to get certain properties of the original images (e.g., orbit number) as these are not included in the STAC properties.
Thanks for your help!
Code: Select all
from pystac_client import Client
url = "https://cmr.earthdata.nasa.gov/stac/LPCLOUD"
cat = Client.open(url)
params = {'intersects': {'type': 'Polygon',
'coordinates': [[[-120.1, 49],
[-120, 49],
[-120, 49.1],
[-120.5, 49.1],
[-120.1, 49]]]},
'collections': ['HLSL30_2.0'],
'datetime': '2013-07-01/2013-09-22'}
search = cat.search(**params)
print(search.matched())
items = search.item_collection()
Code: Select all
APIError: {"errors":["Oops! Something has gone wrong. We have been alerted and are working to resolve the problem. Please try your request again later."]}
Further, the limit where this occurs seems to change by ___location. In another ___location the issue occurred at 100 items. There was a recent post about the name of the collection, I tried both 'HLSL30_2.0' and 'HLSL30.v2.0', both produce the same results.
Finally (perhaps a separate issue), it appears that the 'metadata' asset has been removed from the items. The metadata link was the only way to get certain properties of the original images (e.g., orbit number) as these are not included in the STAC properties.
Thanks for your help!