CLIMATE-484 - Remove rebinning metrics from examples.

Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/26eb92fc
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/26eb92fc
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/26eb92fc

Branch: refs/heads/master
Commit: 26eb92fc9737a432e1ee5758d48ab2d32e52c3c4
Parents: 71706a9
Author: Michael Joyce <[email protected]>
Authored: Wed Jul 2 10:01:22 2014 -0700
Committer: Michael Joyce <[email protected]>
Committed: Wed Jul 2 10:01:22 2014 -0700

----------------------------------------------------------------------
 examples/taylor_diagram_example.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/26eb92fc/examples/taylor_diagram_example.py
----------------------------------------------------------------------
diff --git a/examples/taylor_diagram_example.py 
b/examples/taylor_diagram_example.py
index f60bfe6..b08502e 100644
--- a/examples/taylor_diagram_example.py
+++ b/examples/taylor_diagram_example.py
@@ -85,7 +85,7 @@ wrf_dataset = dsp.spatial_regrid(wrf_dataset, new_lats, 
new_lons)
 
 # Load the metrics that we want to use for the evaluation.
 
################################################################################
-sstdr = metrics.SpatialStdDevRatio()
+sstdr = metrics.StdDevRatio()
 pc = metrics.PatternCorrelation()
 
 # Create our new evaluation object. The knmi dataset is the evaluations
@@ -99,9 +99,7 @@ test_evaluation.run()
 # Pull our the evaluation results and prepare them for drawing a Taylor 
diagram.
 
################################################################################
 spatial_stddev_ratio = test_evaluation.results[0][0]
-# Pattern correlation results are a tuple, so we need to index and grab
-# the component we care about.
-spatial_correlation = test_evaluation.results[0][1][0]
+spatial_correlation = test_evaluation.results[0][1]
 
 taylor_data = numpy.array([[spatial_stddev_ratio], 
[spatial_correlation]]).transpose()
 

Reply via email to