dlr-eoc / ukis-pysat

The ukis-pysat package provides generic classes and functions to query, access and process multi-spectral and SAR satellite images
Apache License 2.0
27 stars 8 forks source link

Update to STAC 1.0.0 #112

Closed fwfichtner closed 3 years ago

fwfichtner commented 3 years ago

More information in this blogpost: https://medium.com/radiant-earth-insights/spatiotemporal-asset-catalog-stac-1-0-0-rc-1-released-59e7946b3873

fwfichtner commented 3 years ago

v1.0.0-rc.2 is here.

fwfichtner commented 3 years ago

It has officially been released: https://medium.com/radiant-earth-insights/stac-specification-1-0-0-released-c59e8c848077

fwfichtner commented 3 years ago

@shiwakotisurendra do we need to do anything here? If not just close.

fwfichtner commented 3 years ago

Or even better, update to pystac 1.0.0 once it is released. I also prefer their new way of handling StacIO, maybe that's something we should do as well -> https://pystac.readthedocs.io/en/latest/api.html#pystac.StacIO.

mwip commented 3 years ago

I think I found something that might be linked to this:

Following the example in the Readme,

# inspect MetadataCollection with Pandas
cat_df = cat.to_pandas()

... I find that AttributeError: 'Catalog' object has no attribute 'to_pandas'

However, Catalog has a .to_dict() method, which indicates, I am using STAC version 1.0.0-beta.2:

{'id': 'asdfasfasfasfasdf', 'stac_version': '1.0.0-beta.2', 'description': 'Creation Date: 2021-07-12 15:23:11.314274, Datahub: Scihub', 'links': [{'rel': 'root', 'href': None, 'type': 'application/json'}]}

shiwakotisurendra commented 3 years ago

Sorry for the inconvenience , in fact readme is not uptodate anymore.

fwfichtner commented 3 years ago

@shiwakotisurendra please update to pystac 1.0.0.