gjoseph92 / stackstac

Turn a STAC catalog into a dask-based xarray
https://stackstac.readthedocs.io
MIT License
232 stars 49 forks source link

issue with numpy 2.0.0 #249

Closed orbiantonin closed 1 month ago

orbiantonin commented 1 month ago

Latest version of numpy (numpy 2.0.0) that came out on jun 17th is breaking the stack.stac() call

import stackstac
import pystac_client

URL = "https://earth-search.aws.element84.com/v1"
catalog = pystac_client.Client.open(URL)

stac_items = catalog.search(
    intersects=dict(type="Point", coordinates=[-105.78, 35.79]),
    collections=["sentinel-2-l2a"],
    datetime="2020-04-01/2020-05-01"
).get_all_items()

stack = stackstac.stack(stac_items)

will end with the following error: image