Hi all - I believe I continue to see this 'limit' related issue. Is there any new guidance on how to overcome this limit issue that seems to have arisen over the past 1.5 months? Is there something that I may have missed? This seems to be a very big problem for our ability to return the full set of search results that we then need to filter and work with.
reproducible code:
#---START CODE----------------------------------
from pystac_client import Client
MAX_N_RESULTS = 252
catalog = Client.open('
https://cmr.earthdata.nasa.gov/stac/LPCLOUD')
MS_product_list = ['HLSL30_2.0', 'HLSS30_2.0']
print(f'\nConducting multispectral image search now with limit = {MAX_N_RESULTS}...')
print(f'Searching for:\t\t\t{MS_product_list}')
search = catalog.search(
collections=MS_product_list,
datetime=['2024-07-01T00:00:00Z' , '2024-08-31T23:59:59Z'],
bbox=[125.65378735345928, 70.23761759131604, 129.10749149273934, 71.38291000560454],
limit=MAX_N_RESULTS,
max_items=None
)
results = search.get_all_items_as_dict()
INFO_STR = ''
if len(results['features']) == MAX_N_RESULTS:
INFO_STR = f"(Heads up! # of search results is the same as your limit ({MAX_N_RESULTS}). Increase limit to filter from full set of data that meets your search criteria.)"
print("initial results:\t\t", len(results['features']), INFO_STR)
#--END CODE----------
Print out:
Conducting multispectral image search now with limit = 252...
Searching for: ['HLSL30_2.0', 'HLSS30_2.0']
initial results: 252 (Heads up! # of search results is the same as your limit (252). Increase limit to filter from full set of data that meets your search criteria.)
However, changing the limit to, in the case 255, will result in this error:
APIError: {"errors":["Oops! Something has gone wrong. We have been alerted and are working to resolve the problem. Please try your request again later."]}