You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
geemap now uses the GEE Data Catalog STAC list to stay current.
def get_ee_stac_list():
"""Gets the STAC list of the Earth Engine Data Catalog.
Raises:
Exception: If the JSON file fails to download.
Returns:
list: The list of Earth Engine asset IDs.
"""
try:
stac_url = (
"https://earthengine-stac.storage.googleapis.com/catalog/catalog.json"
)
datasets = []
with urllib.request.urlopen(stac_url) as url:
data = json.loads(url.read().decode())
for link in data["links"]:
if "id" in link:
datasets.append(link["id"])
return datasets
except Exception as e:
raise Exception(e)
Improve the dataset module to use the Earth Engine Data Catalog STAC list
https://gee.stac.cloud/?t=catalogs
The text was updated successfully, but these errors were encountered: