forked from ESGF/esgf-compute-wps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSETUP.txt
57 lines (35 loc) · 1.73 KB
/
SETUP.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
WPCDAS: Web Processing Climate Data Analysis Services
WPS API leveraging UVCDAT for server-side climate data analytics with clients for web, python, etc.
Package installation:
>> sudo mkdir /usr/local/web
>> sudo chown <username> /usr/local/web
>> cd /usr/local/web
>> git clone [email protected]:ESGF/wps_cwt.git WPCDAS
>> chmod -R a+rX WPCDAS
>> chmod -R a+w WPCDAS/server/logs
>> cd WPCDAS
>> tar xzf sample_data.tar.gz
WPS Server Requirements:
UVCDAT: http://uvcdat.llnl.gov/
Once UVCDAT is installed the following packages should be installed using UVCDAT's python:
PyWPS: http://pywps.wald.intevation.org/documentation/installation.html
lxml: http://lxml.de/ ( pip install lxml )
Django: https://www.djangoproject.com/ ( pip install Django==1.8.1 )
django-corsheaders: https://github.com/OttoYiu/django-cors-headers ( pip install django-cors-headers )
Client Requirements:
The web client is executed using an HTTP server such as Apache or CherryPy.
For Apache, edit the /usr/local/apache2/conf/httpd.conf file:
Set Listen to 8001
Set DocumentRoot to "/usr/local/web/WPCDAS/clients/web/htdocs"
Service Initialization:
Setup the UVCDAT environment:
>> source .../install/bin/setup_runtime.sh
Start the WPS service with the command:
>> cd /usr/local/web/WPCDAS/server; python manage.py runserver
Start the apache server with the command:
>> sudo /usr/local/apache2/bin/apachectl -k start
Testing:
WPS service test URLs can be found at: http://localhost:8001/
Web Client:
A test plot can be accessed at http://localhost:8001/cdas/.
Clicking on the map initiates a WPS call which retrieves a timeseries at the chosen location and then plots it.