CLIMATE-668 - ocw.dataset_spatial_resolution needs to be fixed - without this fix, ocw.dataset.spatial_resolution cannot handle two dimensional latitudes and longitudes - for curvilinear latitudes and longitudes, the output of ocw.dataset.spatial_resolution is approximate. - suggested changes in CLIMATE-667 are removed
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/998df0cb Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/998df0cb Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/998df0cb Branch: refs/heads/master Commit: 998df0cbe543d76b5f4261aa919d07300ecd85fa Parents: d3b9bb5 Author: huikyole <[email protected]> Authored: Tue Sep 8 23:59:39 2015 -0700 Committer: huikyole <[email protected]> Committed: Tue Sep 8 23:59:39 2015 -0700 ---------------------------------------------------------------------- ocw/dataset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/998df0cb/ocw/dataset.py ---------------------------------------------------------------------- diff --git a/ocw/dataset.py b/ocw/dataset.py index 80be53c..e6b0bc6 100644 --- a/ocw/dataset.py +++ b/ocw/dataset.py @@ -89,8 +89,8 @@ class Dataset: :class:`float`, :class:`float`). ''' - return (float(numpy.min(self.lats)), float(numpy.max(self.lats)), - float(numpy.min(self.lons)), float(numpy.max(self.lons))) + return (float(min(self.lats)), float(max(self.lats)), + float(min(self.lons)), float(max(self.lons))) def time_range(self):
