stackstac icon indicating copy to clipboard operation
stackstac copied to clipboard

Create stac objects from stackstac xarray

Open JotaFan opened this issue 1 year ago • 1 comments

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

JotaFan avatar Jan 29 '24 16:01 JotaFan

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!

clausmichele avatar May 07 '24 09:05 clausmichele