diff --git a/CHANGES.md b/CHANGES.md index b252be36..f9d2e426 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -13,6 +13,7 @@ - FIX: Fix error in looking for bands in Sentinel-2 L1C archived products ([#168](https://github.com/sertit/eoreader/issues/168)) - FIX: Handle wrongly recognized Planet products because of the recursive nested mtd in the Reader ([#169](https://github.com/sertit/eoreader/issues/169)) - FIX: Force the loading of `DimapV1` bands in `float32` +- FIX: Handle the case where fiona isn't installed anymore (with `geopandas 1.0`) - OPTIM: Search correctly nested metadata in the Reader (without accidentally using a recursive glob) - CI: Fix S3 endpoint management with `sertit>=1.37` diff --git a/eoreader/products/optical/s2_product.py b/eoreader/products/optical/s2_product.py index 1e26b79a..755780ec 100644 --- a/eoreader/products/optical/s2_product.py +++ b/eoreader/products/optical/s2_product.py @@ -32,7 +32,6 @@ import rasterio import xarray as xr from affine import Affine -from fiona.errors import DriverError from lxml import etree from pystac import Item from rasterio import errors, features, transform @@ -899,7 +898,7 @@ def _open_mask_lt_4_0( # Read vector try: mask = vectors.read(mask_path, crs=self.crs()) - except DriverError: + except vectors.DataSourceError: LOGGER.warning(f"Corrupted mask: {mask_path}. Returning an empty one.") mask = gpd.GeoDataFrame(geometry=[], crs=self.crs()) diff --git a/eoreader/products/sar/csg_product.py b/eoreader/products/sar/csg_product.py index 789aeb4d..579e51bb 100644 --- a/eoreader/products/sar/csg_product.py +++ b/eoreader/products/sar/csg_product.py @@ -218,7 +218,7 @@ def _post_init(self, **kwargs) -> None: """ # Calibration fails with CSG data LOGGER.debug( - "SNAP Error: Calibration currently fails for CSG data. Removing this step." + "SNAP Error: Calibration is useless for CSG data. Removing this step." ) self._calibrate = False diff --git a/requirements.txt b/requirements.txt index e9ff7ca8..fdebdc9b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -37,7 +37,7 @@ geopandas>=0.11.0 spyndex>=0.3.0 # SERTIT libs -sertit[full]>=1.33.0 +sertit[full]>=1.38.0 # Optimizations dask[complete]>=2021.10.0