anu_trend

imdlib.compute.anu_trend(imd_obj)

Function for annual trend analysis

Parameters

obj : IMD

Returns

IMD object

Modified IMD object with computed trend statistics

Examples

Computes trend statistics using one of the below method

  1. Modified Mann-Kendall (MK) test

  2. Spearman’s rho test

  3. Sens slope estimator

  4. Percentage change in trend magnitude using sens slope estimator

>>> start_yr = 1990
>>> end_yr = 2019
>>> variable = 'tmax'
>>> data = imd.open_data(variable, start_yr, end_yr, 'yearwise')
>>> data.compute('spr', 'A')