Skip to contents

Data preparation

Read, standardize, and reshape gridded NetCDF datasets.

hm_read_netcdf()
Read a hazard NetCDF dataset
hm_standardize_coords()
Standardize spatial coordinates
hm_get_grid_geometry()
Extract grid geometry
hm_decode_time()
Decode the NetCDF time axis
hm_to_matrix()
Convert hazard array to a time-by-cell matrix
hm_filter_land_cells()
Remove sea and no-data cells from a hazard matrix

Event selection

Filter extreme-event days and summarise their properties.

hm_select_extreme_events()
Select extreme-event days by threshold
hm_summarise_events()
Summarise retained extreme-event days

Marginal distributions

Fit, diagnose, and transform marginal distributions at each grid cell.

hm_fit_marginals()
Fit marginal distributions to each grid cell
hm_marginal_gof()
Goodness-of-fit diagnostics for a single grid cell
hm_pit_transform()
Apply the Probability Integral Transform

Spatial dependence

Estimate empirical spatial correlation and cluster-size statistics.

hm_distance_matrix()
Compute pairwise haversine distances between grid cells
hm_empirical_kendall()
Compute the empirical pairwise Kendall correlation matrix
hm_empirical_correlogram()
Compute the empirical spatial correlogram
hm_cluster_size()
Compute spatial cluster sizes of extreme events

Copula models

Fit vine and Gaussian copulas and simulate pseudoscenarios.

hm_fit_copula()
Fit a spatial copula model to the uniform PIT data
hm_simulate_copula()
Simulate spatially coherent hazard scenarios from a fitted copula

Stochastic field models

Fit parametric covariance models and simulate via KLE.

hm_fit_correlation_model()
Fit a parametric spatial correlation model to the empirical correlogram
hm_simulate_sf_kle()
Simulate hazard scenarios via Karhunen-Loève Expansion

Visualization

Plot spatial domains, exceedances, marginals, correlograms, and scenarios.

hm_plot_spatial_domain()
Plot spatial domain grid
hm_plot_exceedance()
Plot threshold exceedances
hm_plot_exceedance_time()
Plot extreme-event days over time
hm_plot_best_dist()
Plot best-fitting marginal distribution by grid cell
hm_plot_marginal_fit()
Plot marginal fit diagnostics for a single grid cell
hm_plot_dist_frequency()
Plot frequency of best-fitting marginal distribution families
hm_plot_correlogram()
Plot the empirical spatial correlogram
hm_plot_scenario()
Plot one simulated hazard scenario on the spatial grid