One-dimensional linear regression of raster
The trend analysis is based on one-dimensional linear regression trend analysis, which can simulate the trend of each raster, and then integrated to reflect the spatial and temporal changes of the whole region, calculated by the following formula.
where Slope is the slope of the pixel r regression equation, the variable i is the time series number from 1 to n, n is the time span, and Mr,i is the maximum r value in the nth period.
If Slope > 0, it means that the change in r over time shows an upward trend, and the larger the Slope value, the more obvious the upward trend, and conversely, if Slope < 0, it means that the change in r over time shows a downward trend.
1 | # -*- coding: utf-8 -*- |