mi: Calculate MI

miR Documentation

Calculate MI

Description

Calculate Moisture Index (MI) from daily values of precipitation, sunshine fraction and temperature.

Usage

mi(.data, ...)

## S3 method for class 'tbl_df'
mi(.data, cpus = 1, ...)

Arguments

.data

Data frame (tibble object) (see the details section).

...

Optional parameters, including cpus.

cpus

Numeric value with the number of CPUs to be used for the computation. Default: 1, serial computation.

Details

The input (.data object) data, should contain the following columns:

  • latitude: numeric values for latitude (decimal degrees).

  • elevation: numeric values for elevation (m A.S.L.)

  • pre: list of numeric values for daily precipitation (mm / day).

  • sf: list of numeric values for daily sunshine fraction (%).

  • tmp: list of numeric values for daily temperature (degrees Celsius).

Value

Data frame (tibble object) with the same input data and the addition of a column called mi, containing values for MI.

See Also

plot_mi

Other utils climate: gdd(), mat(), mtco(), mtwa()


special-uor/smpds documentation built on July 9, 2024, 5:39 p.m.