custom AOI feature, changes to plotting and activity rate calculation #24

Merged
ymlesni merged 50 commits from July2026 into master 2026-07-22 12:43:46 +02:00
Showing only changes of commit 3d4f9138d7 - Show all commits
+13
View File
@@ -803,6 +803,19 @@ verbose: {verbose}")
iml_grid_prep = iml_grid.copy() # temp ground motion grids
if use_AOI:
for j in range(0, len(products)):
# Reassemble the grid cleanly using the original shape
# Initialize a flat array filled entirely with NaNs
iml_grid_flat = np.full(num_points, np.nan, dtype=np.float64)
# Assign the computed values to their exact original 1D index positions
iml_grid_flat[indices_filtered] = iml_grid_raw[j]
# Reshape back using the exact shape of your original xx/yy grids
iml_grid_prep[j] = iml_grid_flat.reshape(grid_shape)
for i in indices:
if i in indices_filtered:
for j in range(0, len(products)):