climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1503826 - /incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/RcmedSelectionCtrl.js
Date Tue, 16 Jul 2013 18:47:03 GMT
Author: joyce
Date: Tue Jul 16 18:47:03 2013
New Revision: 1503826

URL: http://svn.apache.org/r1503826
Log:
Update hard coded RCMED dataset values.

- Temporary hard coded values were updated for TRMM dataset. Hopefully
  RCMED will be updated soon so that this information will be returned
  so we can quit spoofing this data.

Modified:
    incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/RcmedSelectionCtrl.js

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/RcmedSelectionCtrl.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/RcmedSelectionCtrl.js?rev=1503826&r1=1503825&r2=1503826&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/RcmedSelectionCtrl.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/RcmedSelectionCtrl.js Tue
Jul 16 18:47:03 2013
@@ -76,8 +76,10 @@ function($rootScope, $scope, $http, $tim
 		// Save the parameter id (the important part) and name (for display purposes)
 		newDataset['param'] = $scope.parameterSelection['parameter_id'];
 		newDataset['paramName'] = $scope.parameterSelection['longname'];
-		// Save the (fake) lat/lon information. Our datasets cover the entire globe (I think...)
-		newDataset['latlonVals'] = {"latMin": -90, "latMax": 90, "lonMin": -180, "lonMax": 180};
+		// Save the (fake) lat/lon information. We test with the TRMM dataset. RCMED currently
+		// doesn't return bounding information. This functionality is being added soon. When that
+		// is the case these hard coded values should be removed.
+		newDataset['latlonVals'] = {"latMin": -49.875, "latMax": 49.875, "lonMin": -179.875, "lonMax":
179.875};
 		// Set some defaults for lat/lon variable names. This just helps us display stuff later.
 		newDataset['lat'] = "N/A";
 		newDataset['lon'] = "N/A";



Mime
View raw message