You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, users of xarray-sentinel pass the path / URL to a manifest.safe file, which is used to discover everything necessary to build the xarray Dataset.
I'm curious whether xarray-sentinel might be able to work with a STAC item that has all the relevant information, and skip reading the manifest.safe file? The STAC items generated by https://github.com/stactools-packages/sentinel5p has almost all the information that's returned by
is parsing the swath, polarization, start. Most likely, that information will come from the assets, but I need to confirm that.
So I have two questions:
Would xarray-sentinel be interested in supporting reading from a STAC items? I could see something like xr.open_dataset(stac_item, engine="sentinel-1") and inferring based on the type, or a separate engine like xr.open_dataset(stac_item, engine="sentinel-1-stac").
@TomAugspurger the essential pieces of information that xarray-sentinel reads from the manifest.safe file are the swath names, the polarizations identifiers, the names of the annotation and measurement files and a way to associate them to swath and polarization. Anything else is nice-to-have metadata. The only exception is the ascendingNodeTime but it is duplicated in the annotations XML, so no problem as well.
As a matter of fact I plan to address #88 before the next release where I intend to move all attributes from the Dataset to the DataArray and most of the STAC-like attributes to a dedicated group or to an auxiliary variable. This should clear most of the top-level dependencies from the manifest.safe file and make the transition to a STAC item much easier.
To answer your questions:
if the STAC item representation is unique enough, this looks like a very nice enhancement, but I don't see it as a priority at the moment
yes it will (also the definition of the files is arbitrary, so we can make it cleaner if needed)
Currently, users of xarray-sentinel pass the path / URL to a
manifest.safe
file, which is used to discover everything necessary to build the xarray Dataset.I'm curious whether xarray-sentinel might be able to work with a STAC item that has all the relevant information, and skip reading the
manifest.safe
file? The STAC items generated by https://github.com/stactools-packages/sentinel5p has almost all the information that's returned byxarray-sentinel/xarray_sentinel/esa_safe.py
Line 107 in afd6fa2
From the attributes, it's just missing
For the
files
, I need to check what exactly is expected. It seems likexarray-sentinel/xarray_sentinel/esa_safe.py
Lines 158 to 160 in afd6fa2
swath, polarization, start
. Most likely, that information will come from the assets, but I need to confirm that.So I have two questions:
xarray-sentinel
be interested in supporting reading from a STAC items? I could see something likexr.open_dataset(stac_item, engine="sentinel-1")
and inferring based on the type, or a separate engine likexr.open_dataset(stac_item, engine="sentinel-1-stac")
.xarray-sentinel/xarray_sentinel/esa_safe.py
Line 107 in afd6fa2
manifest.safe
file?The text was updated successfully, but these errors were encountered: