Skip to contents

Simulates snow accumulation and melt processes using a specified snow module. Currently supports "CemaNeige" (from airGR) and "TUWsnow" (from TUWmodel). Returns surface water runoff and other snow-related variables such as SWE, melt, and precipitation components.

Usage

simulate_snow(
  snow_module,
  model_param,
  input,
  ind = seq_along(input[[1]]),
  airGR_RunOptions = NULL
)

Arguments

snow_module

A string specifying the snow module to use. Supported options are "CemaNeige" and "TUWsnow". "snowsnow" is not yet implemented.

model_param

A numeric vector of snow module parameters.

input

A list containing input data for the snow module, including precipitation (P), air temperature (T), and optionally evapotranspiration (E).

ind

A vector of indices specifying the time steps to simulate. Defaults to the full time range.

airGR_RunOptions

Optional. A pre-created RunOptions object for airGR models.

Value

A list containing:

  • surface_water_runoff: Simulated liquid water output (rain + melt).

  • SWE: Snow water equivalent.

  • psolid: Solid precipitation.

  • pliquid: Liquid precipitation.

  • melt: Meltwater.

  • more_info: A list with additional model-specific output.

Note

  • For "CemaNeige", the function uses airGR's RunModel_CemaNeige.

  • For "TUWsnow", the function uses TUWmodel and appends constant runoff parameters.

  • The "snowsnow" module is not yet implemented due to missing runoff output.

  • Multilayer or spatially distributed snowpack outputs are not yet supported.