Skip to contents

Returns Mann-Kendall trend tests per station/variable and overall annual trend statistics for wave height and wind speed.

Usage

generate_api_trends(
  mann_kendall_per_station,
  annual_trends_wave,
  annual_trends_wind
)

Arguments

mann_kendall_per_station

Named list of per-station Mann-Kendall results. Each element is a station, containing named sub-elements for each variable (e.g. wave_height, wind_speed), each with tau, p_value, trend_direction.

List with annual_stats, trend_per_decade, p_value, r_squared.

Same structure as annual_trends_wave.

Value

A list with _meta and data fields.