ee.ImageCollection.formaTrend
Computes the long and short term trends of a time series or optionally, the trends of the ratio of the time series and a covariate. The long term trend is estimated from the linear term of a regression on the full time series. The short term trend is computed as the windowed minimum over the time series.
The time series and covariate series are expected to contain a single band each, and the time series is expected to be evenly spaced in time. The output is 4 float bands: the long and short term trends, the t-test of the long term trend against the time series, and the Bruce Hansen test of parameter stability.
Usage | Returns |
---|
ImageCollection.formaTrend(covariates, windowSize) | Image |
Argument | Type | Details |
---|
this: timeSeries | ImageCollection | Collection from which to extract trends. |
covariates | ImageCollection, default: null | Cofactors to use in the trend analysis. |
windowSize | Integer, default: 6 | Short term trend analysis window size, in images. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Calculates long-term and short-term trends of a time series, optionally considering a covariate for ratio trends."],["Long-term trends are determined through linear regression over the entire series, while short-term trends use a windowed minimum approach."],["Outputs include the long and short-term trends, a t-test for the long-term trend's significance, and a stability test."],["Requires an evenly spaced time series ImageCollection and an optional covariate ImageCollection."],["Users can customize the short-term trend analysis by adjusting the window size."]]],[]]