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
Modified Mann-Kendall (MK) test
Spearman’s rho test
Sens slope estimator
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')