Repository: climate Updated Branches: refs/heads/master d55b8ae98 -> e9dda95d3
Fix the ensemble calculation Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/9411152e Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/9411152e Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/9411152e Branch: refs/heads/master Commit: 9411152efa3eaef538acb96d13657ac7af9b8540 Parents: 83d83ba Author: huikyole <[email protected]> Authored: Thu Jul 30 17:15:45 2015 -0700 Committer: huikyole <[email protected]> Committed: Thu Jul 30 17:15:45 2015 -0700 ---------------------------------------------------------------------- ocw/dataset_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/9411152e/ocw/dataset_processor.py ---------------------------------------------------------------------- diff --git a/ocw/dataset_processor.py b/ocw/dataset_processor.py index 984e142..50353f7 100755 --- a/ocw/dataset_processor.py +++ b/ocw/dataset_processor.py @@ -186,7 +186,7 @@ def ensemble(datasets): """ _check_dataset_shapes(datasets) dataset_values = [dataset.values for dataset in datasets] - ensemble_values = np.mean(dataset_values, axis=0) + ensemble_values = ma.mean(dataset_values, axis=0) # Build new dataset object from the input datasets and the ensemble values and return it ensemble_dataset = ds.Dataset(datasets[0].lats,
