Repository: climate
Updated Branches:
  refs/heads/master bbbe770e2 -> d58034c99


CLIMATE-823 - An error from CLIMATE-812

- A very critical typo in ocw.dataset_processor.spatial_regrid has been 
corrected.


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

Branch: refs/heads/master
Commit: 6dd6dc7528fd3b96e057cda3c7057739f0443a67
Parents: bbbe770
Author: huikyole <huiky...@argo.jpl.nasa.gov>
Authored: Tue Jul 5 21:21:43 2016 -0700
Committer: huikyole <huiky...@argo.jpl.nasa.gov>
Committed: Tue Jul 5 21:21:43 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/climate/blob/6dd6dc75/ocw/dataset_processor.py
----------------------------------------------------------------------
diff --git a/ocw/dataset_processor.py b/ocw/dataset_processor.py
index 9ab4e50..a4eb090 100755
--- a/ocw/dataset_processor.py
+++ b/ocw/dataset_processor.py
@@ -255,7 +255,7 @@ def spatial_regrid(target_dataset, new_latitudes, 
new_longitudes,
                     mn = lats.min()
                     mx = lats.max()
                     new_lats_indices[iy, ix] = (
-                        ny_old - 1.) * (new_lats[iy, ix] - mn / (mx - mn))
+                        ny_old - 1.) * (new_lats[iy, ix] - mn)/ (mx - mn)
                     mn = lons.min()
                     mx = lons.max()
                     new_lons_indices[iy, ix] = (

Reply via email to