Window length selection of singular spectrum analysis and application to precipitation time series