sat-utils / sat-stac-sentinel

Creation of a Sentinel Spatio-Temporal Asset Catalog (STAC) from inventory of the Sentinel public dataset on AWS
MIT License
21 stars 4 forks source link

Transforming to STAC item from S1L1C metadata fails #30

Open mcasterline-nvidia opened 3 years ago

mcasterline-nvidia commented 3 years ago

I am currently trying to create a local STAC catalog for the Sentinel-1 data that lives on the AWS Open Data Registry. I've run into an issue where the xml metadata associated with a given scene isn't being parsed correctly. In looking through the tests in test/test_sentinel1.py it seems they are not actually testing against the Sentinel-1 collection so are potentially not catching this problem. The specific issue is coming in sentinel.py, line 162 in the to_stack_from_s1l1c method. There is nometadata entry with the key filenames so this is throwing an exception.

logger.debug('Metadata filename: %s' % self.metadata['filenames'][0]) extended_metadata = self.get_xml_metadata(self.metadata['filenames'][0]) logger.debug('Extended metadata: %s' % json.dumps(extended_metadata))

Additionally, there are multiple annotation files - depending on polarization and noise/calibration. I'm not very familiar with the intricacies of S1 data so any help would be much appreciated.

Alternatively - if there exists a STAC endpoint already for the AWS bucket that would also solve my problem, but I haven't been able to find one.