Giter VIP home page Giter VIP logo

emissions-api's Introduction

Emissions API

Build Status

This is the main repository for the Emissions API.

Prerequisites

These can be installed by executing

pip install -r requirements.txt

GDAL for Windows

Follow this guide to install GDAL. For some reason pip have trouble to install the gdal package using pip. The easiest way to fix this is to manually install the wheel package from lfd.uci.edu. Note that the packages are unoffical windows binaries. Install the wheel package with

pip install <FILENAME>

Installation

Note that you do not need to install this project to run the different parts of it. But you can install this tool and its binaries in your environment by executing

python setup.py install

Configuration

Emissions API will look for configuration files in the following order:

  • ./emissionsapi.yml
  • ~/emissionsapi.yml
  • /etc/emissionsapi.yml

A configuration file template can be found at etc/emissionsapi.yml. To get started, just copy this to the main project directory and adjust the values if the defaults do not work for you.

Documentation

To build the documentation you need to have sphinx and sphinx-rtd-theme.

With that installed, simply run

make -C docs clean html

Execute

To execute the programs in this project run

  • download: python -m emissionsapi.download
  • preprocess: python -m emissionsapi.preprocess
  • web: python -m emissionsapi.web

or execute the binaries after installation

  • download: emissionsapi-download
  • preprocess: emissionsapi-preprocess
  • web: emissionsapi-web

Database Setup

This project is using a PostgreSQL database with the PostGIS extension. Attention: PostGIS is not yet available for the newest PostgreSQL v.12.

There is a simple docker-compose.yml file to make it easier to setup a database for development.

You can also setup the database on your own.

emissions-api's People

Contributors

shaardie avatar lkiesow avatar brennerm avatar frangiz avatar benszau avatar tylerbird avatar embeddedhenni avatar tibroc avatar

Watchers

James Cloos 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.