Skip to contents

Returns STL decomposition results per station, downsampled to daily resolution to keep JSON under 1MB.

Usage

generate_api_decomposition(decomp_per_station)

Arguments

decomp_per_station

Named list of per-station decomposition results. Each element should have components (data.frame with time, seasonal, trend, remainder), summary, and variable.

Value

A list with _meta and data fields.