You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2013/08/16 16:10:11 UTC

svn commit: r1514718 - /incubator/climate/branches/RefactorInput/ocw/dataset.py

Author: joyce
Date: Fri Aug 16 14:10:11 2013
New Revision: 1514718

URL: http://svn.apache.org/r1514718
Log:
CLIMATE-254 - Add Bounds __init__

Modified:
    incubator/climate/branches/RefactorInput/ocw/dataset.py

Modified: incubator/climate/branches/RefactorInput/ocw/dataset.py
URL: http://svn.apache.org/viewvc/incubator/climate/branches/RefactorInput/ocw/dataset.py?rev=1514718&r1=1514717&r2=1514718&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/dataset.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/dataset.py Fri Aug 16 14:10:11 2013
@@ -144,4 +144,33 @@ class Bounds:
     * Longitude values must be in the range [-180, 180]
     * Temporal bounds must a valid datetime object
     '''
-    pass
+
+    def __init__(self, lat_min, lat_max, lon_min, lon_max, start, end):
+        '''Default Bounds constructor
+
+        :param lat_min: The minimum latitude bound.
+        :type lat_min: float
+        
+        :param lat_max: The maximum latitude bound.
+        :type lat_max: float
+
+        :param lon_min: The minimum longitude bound.
+        :type lon_min: float
+        
+        :param lon_max: The maximum longitude bound.
+        :type lon_max: float
+
+        :param start: The starting datetime bound.
+        :type start: datetime
+
+        :param end: The ending datetime bound.
+        :type end: datetime
+
+        :raises: ValueError
+        '''
+        self._lat_min = lat_min
+        self._lat_max = lat_max
+        self._lon_min = lon_min
+        self._lon_max = lon_max
+        self._start = start
+        self._end = end