A PCA is applied to a S-mode matrix to reduce the dimension of the variables, in which the grid points are the variables and the days are the observations.
These principal components are subsequently rotated by means of a varimax rotation. With the rotated components, the scores are used to apply the extreme
scores method (Esteban et al., 2005). The scores show the degree of representativeness associated with the variation modes of each principal component, i.e.,
the classification of each day to its more representative centroid. Thus, the extreme scores method uses the scores > 2 and < -2, establishing a positive and
negative phase for each principal component. The extreme scores procedure establishes the number of groups and their centroids in order to apply the K-means
method without iterations.