CLIMATE-349 Adding a function in utils which reshapes monthly data to annually shape with unittest
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/7838254b Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/7838254b Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/7838254b Branch: refs/heads/master Commit: 7838254b077fffef997640c0420c45f74d70782c Parents: 4e671d1 Author: Maziyar Boustani <[email protected]> Authored: Wed May 21 13:59:47 2014 -0700 Committer: Maziyar Boustani <[email protected]> Committed: Wed May 21 13:59:47 2014 -0700 ---------------------------------------------------------------------- ocw/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/7838254b/ocw/utils.py ---------------------------------------------------------------------- diff --git a/ocw/utils.py b/ocw/utils.py index 0fc0b30..cfcfaee 100644 --- a/ocw/utils.py +++ b/ocw/utils.py @@ -225,8 +225,8 @@ def reshape_monthly_to_annually(dataset): :param dataset: Dataset object with full-year format :type dataset: Open Climate Workbench Dataset Object - :returns: Dataset object with shape (num_year, num_month, num_lat, num_lon) - :rtype: Open Climate Workbench Dataset Object + :returns: Dataset values with shape (num_year, num_month, num_lat, num_lon) + :rtype: Numpy array ''' # Get dataset values
