Код: Выделить всё
import pystac_client
import planetary_computer
# Parameters for the query
datetime = "2024-01-01/2024-01-10"
collections = ["modis-15A2H-061"]
intersects = intersects # {"type": "Polygon", "coordinates": polygon}
catalog = pystac_client.Client.open(
"https://planetarycomputer.microsoft.com/api/stac/v1",
modifier=planetary_computer.sign_inplace,
)
search = catalog.search(
bbox=bbox, datetime=datetime, collections=collections, intersects=intersects
)
items = list(search.items())
Код: Выделить всё
APIError:
413 Request Entity Too Large
413 Request Entity Too Large
nginx
Код: Выделить всё
items = list(search.items())
Я хочу использовать stac и в идеале pystac-client для получения данных. Я не хочу устанавливать определенные API, но я мог бы использовать другой Stac. каталоги, если они работают с pystac-клиентом.
Подробнее здесь: https://stackoverflow.com/questions/791 ... ft-planeta