Skip to contents

All functions

avg_duration_by_decade_sql()
sql to summary scenario table
avg_duration_by_decade_truncated_sql()
create SQL tocalculate average duration of marine heatwaves by point in space, grouped by decade
check_mhw_connection()
check if connection works
create_partition_df()
create table of start/end dates for year gaps
create_partition_table()
create temporary partitions table
decades
main decades to use for analysis
duration__histogram()
create history for a raster list
duration_by_decade_sql()
sql for parititioning wave durations by decade
duration_by_decades()
calc mean duration by decade
durations_by_decade_raster()
rasters of global heatwave duration per decade
generate_duration_plots()
plot a series of MHW tables as maps and histograms
get_dbfile()
path to database
make_view()
given a sql statement create a view in db
metric_by_decade_sql()
SQL template for all MHW metrics
metrics_by_decade_raster()
rasters of global heatwave duration per decade
mhw_connect()
get connection to mhw database
mhw_metric_summary_sql()
SQL template to calculate summary of any MHW metric
mhw_table()
get dbplyr table connection
partition_mhw_events()
assign partition to each event
partition_mhw_events_truncated()
mhw_partitioning.R this is a work in progress (WIP) and not complete table of truncated mhw metrics by partitions
partition_mhw_events_truncated_sql()
sql for partitioning
percentile_cutoff_value()
find value for percentile cut-off
plot_decade_rasters()
plot of world rasters by layer, no outlier management
plot_rasters_squish_outliers()
palette_name must be https://dieghernan.github.io/tidyterra/reference/grass_db.html, and you can preview the colors on https://grass.osgeo.org/grass83/manuals/r.colors.html (but get the name from the tidyterra reference) plot terra rasters, but manage outliers
sql_head()
get first few rows from a sql statement
summary_by_decades_raster()
summarize a metric grouped by decades 2040 2050 2060
summary_metrics_raster()
create raster of global marine heatwave summary metric per location
table_head()
get a few first rows of database table
windowing_overlap()
create overlapping subsets of a sequence/vector