climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From huiky...@apache.org
Subject [1/2] climate git commit: CLIMATE-900 - Debugging temporal subset
Date Wed, 08 Mar 2017 17:17:42 GMT
Repository: climate
Updated Branches:
  refs/heads/master 1ecb29555 -> 7741c0af6


CLIMATE-900 - Debugging temporal subset

-ocw.dataset_processor.temporal_subset has been updated.


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

Branch: refs/heads/master
Commit: 7c171058a56cbd50b4aa3f57ce8e0b2ff9643be7
Parents: 1ecb295
Author: huikyole <huikyole@argo.jpl.nasa.gov>
Authored: Wed Mar 8 09:10:55 2017 -0800
Committer: huikyole <huikyole@argo.jpl.nasa.gov>
Committed: Wed Mar 8 09:10:55 2017 -0800

----------------------------------------------------------------------
 ocw/dataset_processor.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/7c171058/ocw/dataset_processor.py
----------------------------------------------------------------------
diff --git a/ocw/dataset_processor.py b/ocw/dataset_processor.py
index 98e6899..b113bc7 100755
--- a/ocw/dataset_processor.py
+++ b/ocw/dataset_processor.py
@@ -77,7 +77,7 @@ def temporal_subset(target_dataset, month_start, month_end,
     if average_each_year:
         nmonth = len(month_index)
         ntime = new_dataset.times.size
-        nyear = ntime // nmonth
+        nyear = ntime/nmonth
         averaged_time = []
         ny, nx = target_dataset.values.shape[1:]
         averaged_values = ma.zeros([nyear, ny, nx])


Mime
View raw message