Hi!
We regularly query HLS data on planetary computer, which is spread over 2 STAC collections. The code below worked before the maintenance on 15/09, but has stopped working since.
import datetime
import planetary_computer
import pystac_client.exceptions
if __name__ == "__main__":
STAC_ENDPOINT = "https://planetarycomputer.microsoft.com/api/stac/v1"
catalog = pystac_client.Client.open(
STAC_ENDPOINT,
modifier=planetary_computer.sign_inplace,
)
# Define search parameters
bbox = (-120.0, 37.0, -119.0, 38.0)
start_date = datetime.date(2024, 1, 1)
end_date = datetime.date(2024, 1, 31)
stac_collections = ["hls2-s30", "hls2-l30"]
# Build datetime range
start_time = datetime.datetime.combine(start_date, datetime.time.min)
end_time = datetime.datetime.combine(end_date, datetime.time.max)
search = catalog.search(
collections=stac_collections,
bbox=bbox,
datetime=(start_time, end_time),
)
items = search.item_collection()
This now fails with:
pystac_client.exceptions.APIError: {"error":"Request must unambiguously select exactly one collection using supported STAC/CQL2 syntax."}
Our last production run that ran this successfully was on 7 Sept, 20:19:28.060 UTC. We first noticed this failing on 23 Sept, 11:23:12.616 UTC.
Given that the HLS collections are very closely related, it seems odd for a search to not allow querying both at the same time.
Hi!
We regularly query HLS data on planetary computer, which is spread over 2 STAC collections. The code below worked before the maintenance on 15/09, but has stopped working since.
This now fails with:
Our last production run that ran this successfully was on 7 Sept, 20:19:28.060 UTC. We first noticed this failing on 23 Sept, 11:23:12.616 UTC.
Given that the HLS collections are very closely related, it seems odd for a search to not allow querying both at the same time.