From b7ee8d52ab02d18c6d78efd0334bdcba2a3b88a6 Mon Sep 17 00:00:00 2001 From: ftong <95+ftong@noreply.example.org> Date: Mon, 22 Jun 2026 14:08:10 +0200 Subject: [PATCH] Update src/seismic_hazard_forecasting.py log message about AOI activation and fix orientation if AOI selected --- src/seismic_hazard_forecasting.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/seismic_hazard_forecasting.py b/src/seismic_hazard_forecasting.py index d8930f3..7cc3d0a 100644 --- a/src/seismic_hazard_forecasting.py +++ b/src/seismic_hazard_forecasting.py @@ -473,7 +473,7 @@ verbose: {verbose}") if (None not in AOI_lat) and (None not in AOI_lon): use_AOI = True - + logger.info(f"Area of Interest (AOI) selected with latitutde range {AOI_lat} and longitude range {AOI_lon}") #convert AOI to UTM u_AOI = utm.from_latlon(AOI_lat, AOI_lon) x_AOI = u_AOI[0] @@ -836,6 +836,10 @@ verbose: {verbose}") iml_grid_hd[iml_grid_hd == 0.0] = np.nan # change zeroes back to nan + # correct orientation is AOI is used + if use_AOI: + iml_grid_hd = np.rot90(iml_grid_hd, k=-1) + #vmin_hd = min(x for x in iml_grid_hd.flatten() if not isnan(x)) vmax_hd = max(x for x in iml_grid_hd.flatten() if not isnan(x))