Update src/seismic_hazard_forecasting.py
use upscale=1 while testing
This commit is contained in:
@@ -14,8 +14,8 @@ torder_min = 0
|
|||||||
torder_max = 1
|
torder_max = 1
|
||||||
AOI_lat = np.array([51.48, 51.54])
|
AOI_lat = np.array([51.48, 51.54])
|
||||||
AOI_lon = np.array([16.15, 16.24])
|
AOI_lon = np.array([16.15, 16.24])
|
||||||
AOI_lat = np.array([None, None])
|
#AOI_lat = np.array([None, None])
|
||||||
AOI_lon = np.array([None, None])
|
#AOI_lon = np.array([None, None])
|
||||||
|
|
||||||
def plot_results(act_rate, bin_edges, bin_edges_dt, rt, boundaries,
|
def plot_results(act_rate, bin_edges, bin_edges_dt, rt, boundaries,
|
||||||
bin_dur, unit, multiplicator,
|
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
|
# 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:
|
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)),
|
iml_grid_hd = resize(iml_grid_tmp, (up_factor * len(iml_grid_tmp), up_factor * len(iml_grid_tmp)),
|
||||||
mode='reflect', anti_aliasing=False)
|
mode='reflect', anti_aliasing=False)
|
||||||
trim_thresh = vmin
|
trim_thresh = vmin
|
||||||
|
|||||||
Reference in New Issue
Block a user