Update src/seismic_hazard_forecasting.py

use upscale=1 while testing
This commit is contained in:
2026-06-19 18:07:55 +02:00
parent 9a0b9444a3
commit 9f78e5681c
+3 -3
View File
@@ -14,8 +14,8 @@ torder_min = 0
torder_max = 1
AOI_lat = np.array([51.48, 51.54])
AOI_lon = np.array([16.15, 16.24])
AOI_lat = np.array([None, None])
AOI_lon = np.array([None, None])
#AOI_lat = np.array([None, None])
#AOI_lon = np.array([None, None])
def plot_results(act_rate, bin_edges, bin_edges_dt, rt, boundaries,
bin_dur, unit, multiplicator,
@@ -826,7 +826,7 @@ verbose: {verbose}")
# upscale the grid, trim, and interpolate if there are at least 10 grid values with range greater than 0.1
if np.count_nonzero(iml_grid_tmp) >= 10 and vmax-vmin > 0.1:
up_factor = 4
up_factor = 1
iml_grid_hd = resize(iml_grid_tmp, (up_factor * len(iml_grid_tmp), up_factor * len(iml_grid_tmp)),
mode='reflect', anti_aliasing=False)
trim_thresh = vmin