Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If time, change the date/time used to compute the clusters. How does the variance explained by the first two clusters change? Is geopotential the best parameter to use?

To change the number of clusters please see the Appendix.
Panel
borderColor#91c89c
bgColor#f3f9f4
titleBGColor#91c89c
borderStylesolid
titleAdditional tasks
Anchor
forclusternumberforclusternumber

Exercise 5: Assessment of forecast errors

In this exercise, the analyses covering the forecast period are now available to see how Nadine and the cut-off low actually behaved.

titleCluster method code

For those interested:

The code that computes the clusters can be found in the Python script: aux/cluster.py.

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!


Panel
borderColor#91c89c
bgColor#f3f9f4
titleBGColor#91c89c
borderStylesolid
titleAdditional tasks

Anchor
forclusternumber
forclusternumber
To change the number of clusters please see the Appendix.


Exercise 5: Assessment of forecast errors

In this exercise, the analyses covering the forecast period are now available to see how Nadine and the cut-off low actually behaved.

Various methods for presenting the forecast error are used in the tasks below.  The clusters created in the previous exercise can also be used.

...

Code Block
  clusterNum=2

to

Code Block
  clusterNum=3

Now if you run the eof.mv macro, it will generate a text file, such as ens_oper.eof.txt with 3 lines, one for each cluster. It will also show the 3 clusters as different colours.

You can use the 3 clusters in the cluster_to_ref.mv macro, for example:

Code Block
param="z500.s"
expId="ens_oper"
members_1=["cl.eof.1"]
members_2=["cl.eof.3"]

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.

...

titleCluster method code

For those interested:

The code that computes the clusters can be found in the Python script: aux/cluster.py.

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

=3

Now if you run the eof.mv macro, it will generate a text file, such as ens_oper.eof.txt with 3 lines, one for each cluster. It will also show the 3 clusters as different colours.

You can use the 3 clusters in the cluster_to_ref.mv macro, for example:

Code Block
param="z500.s"
expId="ens_oper"
members_1=["cl.eof.1"]
members_2=["cl.eof.3"]

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.

...

Back to the tutorial

Further reading

...