umr-lops / xarray-safe-rcm

Read RADARSAT Constellation Mission (RCM) SAFE files using xarray
https://xarray-safe-rcm.readthedocs.io
MIT License
3 stars 3 forks source link

use the manifest to provide nicer error messages #47

Closed keewis closed 1 year ago

keewis commented 1 year ago

In case some files cannot be found, it is more user-friendly to raise before attempting (and failing) to read those files: that way, we get immediate feed-back of what's wrong.

This makes use of exception groups, a new feature in python 3.11 which for older versions has been backported by the exceptiongroup library (we can't make use of the except* syntax on python<3.11, though).