ubarsc / python-fmask

A set of command line utilities and Python modules that implement the ‘fmask’ algorithm
https://www.pythonfmask.org
GNU General Public License v3.0
74 stars 21 forks source link

Ignore INSPIRE.xml when searching for metadata file in old-format zips #49

Closed StfnJ closed 2 years ago

StfnJ commented 2 years ago

The recently added code for finding the metadata xml in old format files got tripped up on the INSPIRE.xml file being present in the top directory.

I think these files are there by default in at least some if not all Sentinel-2 sources, so it's worth accounting for.

Thank you for your great work!

neilflood commented 2 years ago

@StfnJ Excellent, thank you so much. Sorry for missing this detail. Your solution looks fine.