Skip to contents

Align observation depth data with model data

Usage

align_depth_data(aeme, model, var_sim, ens_n = 1, return_df = TRUE)

Arguments

aeme

aeme; object.

model

vector; of models to be used. Can be `dy_cd`, `glm_aed`, `gotm_wet`.

var_sim

string; of variable to plot

ens_n

numeric; ensemble number to allocate to model output which is loaded. Defaults to 1.

return_df

logical; if TRUE, return a dataframe; if FALSE, return a list. Default is TRUE.

Value

A data frame with the following columns:

  • Date: Date of observation

  • depth: Depth of observation

  • elev: Elevation of observation

  • Model: Model name

  • var_sim: Variable name

  • value: Value of the variable

  • depth_from: Depth from which the variable is extracted

  • depth_to: Depth to which the variable is extracted