gjoseph92 / stackstac

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

NetCDF Time Dimension #237

Open pinkerltm opened 7 months ago

pinkerltm commented 7 months ago

Hello!

We tailored or own STAC Catalog / API with stac-tools (pgSTAC Backend, FastAPI) indexing publicy available precipitation data from here https://public.hub.geosphere.at/datahub/resources/spartacus-v2-1d-1km/filelisting/RR/SPARTACUS2-DAILY_RR_2022.nc

As you can see, there is one NetCDF File for each year, which holds 365 days, so the time dimension should hold 365 labels.

If we stack items from our catalog (for example two years) I`ll get an xarray with only one time slot for the whole file.

grafik

Can you give me advise which STAC-extensions we should focus on so that stackstac gets enough metadata to successful create that XArray?

clausmichele commented 6 months ago

Hi @pinkerltm, could you please share the full code you're using to reproduce the issue?