gjoseph92 / stackstac

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

Create stac objects from stackstac xarray #239

Open JotaFan opened 6 months ago

JotaFan commented 6 months ago

Using stackstac is a great way to get data, and explore it. Now I propose to have a stackstac native function to create a stac catalog from a xarray. This would allow for greater storage crawling.

Right now I have a project where I am using stacktac to download the data I need. But I need to keep that data cataloged, and what better way than to also use stack for it.

My current solution I need to keep track of the AOI and stack items, and after the data is download I create new items based on both of them. It would be good to just be able to get the stack items from the stackstac object

clausmichele commented 2 months ago

Hi @JotaFan, I'm also a stackstac user and we are currently working on this feature within this project: https://pypi.org/project/raster2stac/ https://gitlab.inf.unibz.it/earth_observation_public/raster-to-stac

Currently is capable to convert input like netCDFs and also xarray objects to a valid STAC Collection with Items and Assets, converting the data either to COGs or using Kerchunk. We are open to any kind of contribution or feedback!