Git Product home page Git Product logo

airquality's Introduction

aqi-conama

Package with functions for working with air quality in python

Install

pip install git+git://github.com/patricksferraz/airquality.git

Usage

aqi.Conama

Module to calculate the air quality index based on the standards established by CONAMA Resolution No. 491/2018

from airquality.aqi import Pollutant, Conama

conama = Conama()

# pollutant lists available
conama.list_pollutants()
# out: ['Pollutant.PM10', 'Pollutant.PM25', 'Pollutant.SO2', 'Pollutant.NO2', 'Pollutant.CO', 'Pollutant.O3']

# PM10 concentration = 40
conama.get_aqi(c=40, elem=Pollutant.PM10)
# out: {'good': Decimal('50.00')}

# PM10 concentration = 120.5
conama.get_aqi(c=120.5, elem=Pollutant.PM10)
# out: {'inadequate': Decimal('101.3017705927636643571978445')}

# SO2 concentration = 1620.5
conama.get_aqi(c=1620.5, elem=Pollutant.SO2)
# out: {'terrible': Decimal('304.0400080016003200640128026')}

airquality's People

Contributors

patricksferraz 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.