Coder Social home page Coder Social logo

darkraisisi / roadpollutionpy Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 2.08 MB

RoadPollutionPY is a visualisation tool to determine the effect different maximum speeds have on pollution created by wheeled vehicles - IPASS 2019/2020

License: GNU General Public License v3.0

Python 100.00%
visualisation wheeled-vehicles mathplotlib overpass overpass-api pollution

roadpollutionpy's Introduction

RoadPollutionPY

RoadPollutionPY is a simulation tool that helps visualize the effect that different maximum speeds have on pollution air concentration created by wheeled vehicles

Installation

Install OpenStreetMap Overpass API libary:

pip install overpass

Installing plotting libary:

python -m pip install -U matplotlib

Install pandas:

Official installation guide

Using the simulator

Overview

All the important things are located under the folder roadpollutionpy/.

roadpollutionpy/config.py: this folder has a bunch of user editable variables that work with other set variables.

roadpollutionpy/roadpollution.py: is the user oriented file to run, this will promt you for the action you want to perform based on the parameters set in the config.py.

roadpollutionpy/api.py: this is the file that interacts with the overpass api and download map data, this file will also handle normalisation(memory oriented).

roadpollutionpy/draw.py: this file will handle all things regarding drawing, this is done with matplotlib.

roadpollutionpy/poll.py: saving the best for last, this file will handle all the pollution related calculations.

Running

To run a simulation i suggest you to run it from a relative position like: C:/Python383/python.exe "C:/path/to/repo/RoadPollutionPY/roadpollutionpy/roadpollution.py"

To run a test: C:/Python383/python.exe -m pytest .\test_algorithm.py

Troubleshooting

Problems with saving or reading maps?
Check if the folders maps/norm/ are present, check the config for path variables

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.