Blame view

README.md 816 Bytes
19268da3   Goutte   Initial commit.
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

The sources of the website available at https://spaceweatheronline.cdpp.eu


# What

## Web Server

Build and serve the space weather visualization webpages.
A flask webserver, serving d3.js visualizations.


## Bridge

Gather NetCDF data from AMDA, and serve it as CSV to the javascript plotter.


### Rationale

- Reading NetCDF from javascript is doable, but still very hacky.
- The bridge can handle pagination, collecting multiple NetCDF into one CSV.


# How

## Overview

- `config.yml` : the main configuration file.
- `web/run.py` : the front controller, holding most of the code.


## Install

``` bash
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
```


## Develop

``` bash
source venv/bin/activate
python web/run.py
```

Then, browse [localhost:5000](http://localhost:5000).