Temp_model: Altitude gradient base air temperature models

View source: R/RcppExports.R

Temp_modelR Documentation

Altitude gradient base air temperature models

Description

Extrapolate air temperature records to another heights. In this package version you can use the classical linear gradient model or a modified version which sets an upper altitudinal threshold air temperature decrement (avoiding unreliable estimations).

Usage

Temp_model(
       model,
       inputData,
       zmeteo,
       ztopo,
       param
)

Arguments

model

numeric value with model option:

  • 1: linear air temperature gradient (LT).

  • 2: linear air temperature gradient with an upper threshold (LTM).

inputData

numeric vector with air temperature record series [ºC/Δ t].

zmeteo

numeric value indicating the altitude where the air temperature is recorded [masl].

ztopo

numeric value with the target height [masl].

param

numeric vector with the following parameters:

LT

  • 1: air temperature linear gradient (grad_t) [ºC/km].

LPM

  • 1: air temperature linear gradient (grad_t) [ºC/km].

  • 2: threshold height. Air temperature does not decrease when the altitude (ztopo) is higher than this value [masl].

Value

Numeric vector with the extrapolated air temperature series.

References

Immerzeel, W.W., Petersen, L., Ragettli, S., Pellicciotti, F., 2014. The importance of observed gradients of air temperature and precipitation for modeling runoff from a glacierized watershed in the Nepalese Himalayas. Water Resour. Res. 50, 2212–2226. https://doi.org/10.1002/2013WR014506

Examples

# The following is a toy example. I strongly recommend to see
# the package vignettes in order to improve your skills on HBV.IANIGLA

## simple linear model
airTemp <- Temp_model(
                      model = 1,
                      inputData = runif(200, max = 25, min = -10),
                      zmeteo = 2000, ztopo = 3500, param = c(-6.5)
                      )


HBV.IANIGLA documentation built on Nov. 24, 2022, 1:07 a.m.