snow_wrapper: Wrapper for running snow model

Description Usage Arguments Value Examples

View source: R/model_wrapper.R

Description

The snow model is a simple temperature index model.

Usage

1
snow_wrapper(insnow)

Arguments

indata

A list with the following items:

  • Prec Matrix with precipitation, dimensions Ntimes * NZones

  • Tair Matrix with air temperature, dimensions Ntimes * NZones

  • SWE Initial state of snow water equivalent

  • Param Model parameters

Value

Simulated snow water equivalents

Examples

1
2
3
4
5
6
7
8
iwsh <- 3

indata = list(Prec   = sample_data[[iwsh]]$Prec,
              Tair   = sample_data[[iwsh]]$Tair,
              SWE    = matrix(0, nrow = 1, ncol = ncol(sample_data[[iwsh]]$Prec)),
              Param  = 3)

res_sim <- snow_wrapper(indata)

jmgnve/HMOD documentation built on May 19, 2019, 1:53 p.m.