diff --git a/CHANGES.md b/CHANGES.md index 1898b541..8b402d1f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,10 +3,11 @@ ## 0.21.8 (2024-mm-dd) - FIX: Fix stack save_as_int to use updated int values - ENH: Add a new type (`BandsType`) for list of BandType -- FIX: Fixed PAZ Product Regex to properly indentify PAZ ST products as `PAZProduct` @guillemc23 +- FIX: Fixed PAZ Product Regex to properly indentify PAZ ST products as `PAZProduct` - by @guillemc23 +- FIX: Fixed preprocessing graph paths in order to support relative paths in more complex environments or contexts - by @guillemc23 - FIX: Remove useless `_norm_diff` function `indices.py` - DOC: Update `conf.py` (remove useless hunks and set Sphinx 7 as base) -- DOC: Added the [PAZ product guide](https://earth.esa.int/eogateway/documents/20142/37627/PAZ-Image-Products-Guide.pdf) to the PAZ Product documentation instead of the TerraSAR-X one @guillemc23 +- DOC: Added the [PAZ product guide](https://earth.esa.int/eogateway/documents/20142/37627/PAZ-Image-Products-Guide.pdf) to the PAZ Product documentation instead of the TerraSAR-X one - by @guillemc23 ## 0.21.7 (2024-11-08) diff --git a/eoreader/products/sar/sar_product.py b/eoreader/products/sar/sar_product.py index 9d7d8094..48511994 100644 --- a/eoreader/products/sar/sar_product.py +++ b/eoreader/products/sar/sar_product.py @@ -746,7 +746,7 @@ def _pre_process_sar(self, band: sab, pixel_size: float = None, **kwargs) -> str f"{spt}_{sat}_preprocess_default.xml" ) else: - pp_graph = AnyPath(os.environ[PP_GRAPH]) + pp_graph = AnyPath(os.environ[PP_GRAPH]).resolve() if not pp_graph.is_file() or not pp_graph.suffix == ".xml": FileNotFoundError(f"{pp_graph} cannot be found.") @@ -847,7 +847,7 @@ def _despeckle_sar(self, band: sab, **kwargs) -> str: if DSPK_GRAPH not in os.environ: dspk_graph = utils.get_data_dir().joinpath("sar_despeckle_default.xml") else: - dspk_graph = AnyPath(os.environ[DSPK_GRAPH]) + dspk_graph = AnyPath(os.environ[DSPK_GRAPH]).resolve() if not dspk_graph.is_file() or not dspk_graph.suffix == ".xml": FileNotFoundError(f"{dspk_graph} cannot be found.")