...
Warning |
---|
Always use the Otherwise cluster_to_an.mv and other plots with clustering enabled will fail or plot with the wrong clustering of ensemble members. If you change step or ensemble, recompute the EOFS and cluster definitions using eof.mv. Note however, that once a cluster has been computed, it can be used for all steps with any parameter. Note that the EOF analyses is run over the smaller domain over France. This may produce a different clustering to your manual cluster if you used a larger domain. |
Warning |
---|
TODO: allow the students to choose 2,3 or 4 clusters from the EOFs. Pass a new variable from the user level to the base_* functions. |
Panel | ||
---|---|---|
| ||
Edit 'eof.mv' Set the parameter to use, choice of ensemble and forecast step required for the EOF computation:
Run the macro. The above example will compute the EOFs of geopotential height anomaly at 500hPa using the 2012 operational ensemble at forecast step 00Z on 24/09/2012. A plot will appear showing the first two EOFs. The geographical area for the EOF computation is: 35-55N, 10W-20E (same as in Pantillon et al). If desired it can be changed in |
...
Panel | ||
---|---|---|
| ||
Q. How similar is the PCA computed clusters to your manual clustering? |
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
To change the number of clusters created by the EOF analysis, find the file in the folder Edit this file and near the top, change:
to
then select 'File' and 'Save' to save the changes. Now if you run the You can use the 3 clusters in the
would plot the mean of the members in the first and the third clusters (it's not possible to plot all three clusters together). You can have as many clusters as you like but it does not make sense to go beyond 3 or 4 clusters. |
Panel | ||
---|---|---|
| ||
For those interested: The code that computes the clusters can be found in the Python script: This uses the 'ward' cluster method from SciPy. Other cluster algorithms are available. See http://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.hierarchy.linkage.html#scipy.cluster.hierarchy.linkage The python code can be changed to a different algorithm or the more adventurous can write their own cluster algorithm! |
...