Skip to content

Commit b75c665

Browse files
committed
Fix issues for merge into master
1 parent e07c2c5 commit b75c665

File tree

5 files changed

+21
-17
lines changed

5 files changed

+21
-17
lines changed

README.txt SETUP.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
WPCDAS: Web Processing Climate Data Analysis Services
22

33
WPS API leveraging UVCDAT for server-side climate data analytics with clients for web, python, etc.
4-
The inital version of the WPS server was based on code developed by Charles Doutriaux, LLNL.
54

65
Package installation:
76

87
>> sudo mkdir /usr/local/web
98
>> sudo chown <username> /usr/local/web
10-
>> cd /usr/local/web
11-
>> git checkout [email protected]:ThomasMaxwell/CDS-WPS-AaaS.git WPCDAS
9+
>> cd /usr/local/web
10+
>> git clone [email protected]:ESGF/wps_cwt.git WPCDAS
1211
>> chmod -R a+rX WPCDAS
1312
>> chmod -R a+w WPCDAS/server/logs
1413
>> cd WPCDAS
@@ -20,9 +19,10 @@ WPS Server Requirements:
2019

2120
Once UVCDAT is installed the following packages should be installed using UVCDAT's python:
2221

23-
lxml: http://lxml.de/
24-
Django: https://www.djangoproject.com/
25-
django-corsheaders: https://github.com/OttoYiu/django-cors-headers
22+
PyWPS: http://pywps.wald.intevation.org/documentation/installation.html
23+
lxml: http://lxml.de/ ( pip install lxml )
24+
Django: https://www.djangoproject.com/ ( pip install Django==1.8.1 )
25+
django-corsheaders: https://github.com/OttoYiu/django-cors-headers ( pip install django-cors-headers )
2626

2727

2828
Client Requirements:

clients/web/htdocs/cdas/index.html

+12-11
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<script type="text/javascript" src="TimeseriesPlot/rickshaw.js"></script>
1515
<script type="text/javascript" src="WPSResponseManager.js"></script>
1616
<script type="text/javascript" src="jquery-2.1.3.js"></script>
17-
<script src="CDS.js"></script>
18-
<script src="./TimeseriesPlot/timeseries.js"></script>
17+
<script src="CDS.js"></script>
18+
<script src="./TimeseriesPlot/timeseries.js"></script>
1919
</head>
2020
<body>
2121
<div class="row-fluid">
@@ -35,22 +35,21 @@
3535
var variable_index = 0;
3636
var embedded = true;
3737
var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
38-
map.addLayer(wms);
39-
OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
38+
OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
4039
defaultHandlerOptions: { 'single': true, 'double': false, 'pixelTolerance': 0, 'stopSingle': false, 'stopDouble': false },
4140
initialize: function(options) {
4241
this.handlerOptions = OpenLayers.Util.extend( {}, this.defaultHandlerOptions );
43-
OpenLayers.Control.prototype.initialize.apply( this, arguments );
42+
OpenLayers.Control.prototype.initialize.apply( this, arguments );
4443
this.handler = new OpenLayers.Handler.Click( this, { 'click': this.trigger }, this.handlerOptions );
45-
},
44+
},
4645
trigger: function(e) {
4746
var lonlat = map.getLonLatFromPixel(e.xy);
4847
var domain_json = JSON.stringify( { longitude: lonlat.lon, latitude: lonlat.lat }, json_replacer );
4948
var variable_json = JSON.stringify( variables[ variable_index ], json_replacer );
50-
51-
if ( debug ) {
49+
50+
if ( debug ) {
5251
console.log( " @@@ Execute\nDomain:\n " + domain_json );
53-
console.log( " Variable:\n " + variable_json );
52+
console.log( " Variable:\n " + variable_json );
5453
console.time("WPS Execute");
5554
}
5655
CDS.wps.execute({
@@ -61,19 +60,21 @@
6160
variable: variable_json,
6261
embedded: embedded
6362
},
64-
success: function(output) {
65-
wpsResponseManager.process( output.responseText, embedded,
63+
success: function(output) {
64+
wpsResponseManager.process( output.responseText, embedded,
6665
function( responseJson ) {
6766
timeseries.plot( "timeseries-elem", responseJson );
6867
} );
6968
}
7069
});
7170
}
7271
});
72+
map.addLayer(wms);
7373
var click = new OpenLayers.Control.Click();
7474
map.addControl(click);
7575
map.zoomToMaxExtent();
7676
click.activate();
77+
7778
</script>
7879

7980
</body>

clients/web/logs/README.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The web server must be able to create and write to files in this directory.

server/analysis/timeseries_analysis.py

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def applyOperation( self, input_variable, operation ):
9494
type = operation.get('type','').lower()
9595
bounds = operation.get('bounds','').lower()
9696
op_start_time = time.clock() # time.time()
97+
wpsLog.debug( "applyOperation: %s " % str( [operation, type, bounds ] ) )
9798
if not bounds:
9899
if type == 'departures':
99100
ave = cdutil.averager( input_variable, axis='t', weights='equal' )

server/logs/README.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The django server must be able to create and write to files in this directory.

0 commit comments

Comments
 (0)