Cluster of precipitation time series
9 views (last 30 days)
Show older comments
Hi guys,
I have a precipitation time series of several years and I would like to cluster the information automatically by seasons (Autumn, Winter, Spring, Summer). Using the kmeans algorithm (kmeans(X,4)), I only get the whole domain of the data (i.e. all the years) split in 4 equally spaced subdomains. However, I would like to split each year contained in the whole dataset in the four seasons.
Any ideas from your side?
R
5 Comments
Answers (2)
Mahesh Taparia
on 17 Sep 2019
Hi CJ,
Since you want to cluster the precipitation data into 4 seasons in year wise format, you should take year wise data and then perform the K-means clustering with 4 classes for each season. Save the clustered data year wise. Hope this helps.
0 Comments
CJ
on 20 Sep 2019
1 Comment
Mahesh Taparia
on 20 Sep 2019
Hi,
As per my answer, you will have 4 classes only. Follow these steps:
- Take the precipitation data of a year, cluster it into 4 classes as per season.
- Take the second year data and again cluster it into 4 classes.
- Apppend these 2 years of data of same seasons into 4 classes with the same cluster head. It will result in 4 classes only.
- Repeat the steps upto n'th year data.
- Finally, you will have 4 classes only.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!