Git Product home page Git Product logo

spatial's Introduction

Spatial db project - weather data visualization

Frameworks/Libraris used:

  • Flask (web framework)
  • SQLAlchemy+GeoAlchemy (postgres/postgis library)
  • Numpy+Scipy (Math library)
  • Shapely (Spatial library)
  • Postgres+Postgis (relational database with spatial support)

How to get started

First you have to install postgres with postgis. Afterwards start it and create a user and a database for our project:

$ sudo su postgres
$ createuser -D -P -s -R foo232
$ createdb -O foo232 foo23

Download the source, create a new virtualenv and install dependencies like frameworks and libaries (you always need to activate your environment). It's better if you install numpy via your distribution package manager:

$ git clone [email protected]:cholin/spatial.git
$ cd spatial
$ virtualenv2 env
$ . env/bin/activate               # activate virtual environment
$ pip install -r requirements.txt

Configure database credentials

$ cat config.cfg.dist > config.cfg
$ vim config.cfg                   # set credentials for SQLALCHEMY

Create database and import data from DWD (see README)

$ python2 manage.py resetdb
$ python2 manage.py import_weather                # imports all recent dwd data
$ python2 manage.py import_forecast 2015-01-01    # import forecasts from
                                                  # 01.01.2015 until now

Start webserver

$ python2 manage.py runserver
$ firefox http://localhost:5000

spatial's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.