plot_grid(results_p_value[variable],axes=axes[i,j],add_netherlands_shapefile=True)# See documentation on plot_grid in pygridsio, you can also provide your own shapefile
plt.tight_layout()# ensure there is enough spacing between subplots
plt.tight_layout()# ensure there is enough spacing
plt.savefig(output_data_path/"maps.png")
# plot net-present value at a single location as a function of p-value and find the probability of success
x,y=85e3,440e3# define location
x,y=125e3,525e3# define location
results_loc=results.sel(x=x,y=y,method="nearest")
# probability of success is defined as the p-value where npv = 0.0, use interpolation to find pos:
@@ -85,7 +86,7 @@ pos = np.interp(0.0, results_loc.npv[::-1], results_loc.p_value[::-1]) # The ord
# plot npv versus p-value and a map showing the location of interest