Cluster analysis of three-way atmospheric data