CMR search rate exceeded error still occurs after waiting 12 hours to access data
Posted: Fri Nov 22, 2024 4:38 pm America/New_York
I am getting the error message 'CMR Search rate exceeded' when attempting to access HLS data using the python libraries earthaccess, stackstac and pystac_client. I have not attempted to run this script for at least 12 hours, but I am still getting the rate exceeded message. Is is necessary to wait longer before I can access the data again?
The script I am using (and that was reliably working previously) is as follows:
import stackstac
import earthaccess
earthaccess.login(strategy="netrc")
from pystac_client import Client
catalog = Client.open("https://cmr.earthdata.nasa.gov/stac/LPCLOUD")
items = catalog.search(
bbox=bbox_4326, ### this bounding box covers the borough of Manhattan in NYC
collections=["HLSL30.v2.0"],
datetime="2016-04-01/2016-11-01" ### 8 months of data
).item_collection()
stack = stackstac.stack(
items,
epsg=26918,
resolution=30,
bounds=bbox_utm,
assets=bands).where(lambda x: x > 0, other=np.nan) ### all spectral bands
The script I am using (and that was reliably working previously) is as follows:
import stackstac
import earthaccess
earthaccess.login(strategy="netrc")
from pystac_client import Client
catalog = Client.open("https://cmr.earthdata.nasa.gov/stac/LPCLOUD")
items = catalog.search(
bbox=bbox_4326, ### this bounding box covers the borough of Manhattan in NYC
collections=["HLSL30.v2.0"],
datetime="2016-04-01/2016-11-01" ### 8 months of data
).item_collection()
stack = stackstac.stack(
items,
epsg=26918,
resolution=30,
bounds=bbox_utm,
assets=bands).where(lambda x: x > 0, other=np.nan) ### all spectral bands