Repository: climate Updated Branches: refs/heads/master 44c189e85 -> adf9ccd35
CLIMATE-737 - Debugging dataset_processor.temporal_rebin -temporal_rebin's keyword, time_unit, is replaced by temporal_resolution. Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/4e44df9c Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/4e44df9c Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/4e44df9c Branch: refs/heads/master Commit: 4e44df9c706300b4c503f7647c7a74c522fc8c7d Parents: 44c189e Author: huikyole <[email protected]> Authored: Sat Jan 30 17:54:16 2016 -0800 Committer: huikyole <[email protected]> Committed: Sat Jan 30 17:54:16 2016 -0800 ---------------------------------------------------------------------- ocw/dataset_processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/4e44df9c/ocw/dataset_processor.py ---------------------------------------------------------------------- diff --git a/ocw/dataset_processor.py b/ocw/dataset_processor.py index fee61bf..8ee5962 100755 --- a/ocw/dataset_processor.py +++ b/ocw/dataset_processor.py @@ -104,7 +104,7 @@ def temporal_subset(month_start, month_end, target_dataset, average_each_year=Fa return new_dataset -def temporal_rebin(target_dataset, time_unit): +def temporal_rebin(target_dataset, temporal_resolution): """ Rebin a Dataset to a new temporal resolution :param target_dataset: Dataset object that needs temporal rebinned @@ -119,7 +119,7 @@ def temporal_rebin(target_dataset, time_unit): # Decode the temporal resolution into a string format that # _rcmes_calc_average_on_new_time_unit_K() can understand - binned_values, binned_dates = _rcmes_calc_average_on_new_time_unit(target_dataset.values, target_dataset.times, time_unit) + binned_values, binned_dates = _rcmes_calc_average_on_new_time_unit(target_dataset.values, target_dataset.times, temporal_resolution) binned_dates = np.array(binned_dates) new_dataset = ds.Dataset(target_dataset.lats, target_dataset.lons,
