A tool for cleaning and processing air quality data
Project description
AirPy Tool
A Python package for cleaning and processing air quality data.
Installation
You can install AirPy from PyPI:
pip install airpy-tool
You can also install directly from GitHub:
pip install git+https://github.com/chandankr014/airpy-tool.git
Or clone the repository and install locally:
git clone https://github.com/chandankr014/airpy-tool.git
cd airpy-tool
pip install -e .
Usage
Command-line Interface
AirPy provides a command-line tool for processing air quality data:
# Process all data
airpy
# Process data for a specific city
airpy --city "Delhi"
# Process live data
airpy --live
# Specify custom directories
airpy --raw-dir /path/to/raw/data --clean-dir /path/to/output
# Process specific pollutants
airpy --pollutants PM25 PM10 NO2
Python API
You can also use AirPy as a Python library:
from airpy.core.processor import process_data
# Process data with default settings
process_data()
# Process data for a specific city
process_data(city="Delhi")
# Process live data
process_data(live=True)
# Specify custom directories
process_data(raw_dir="/path/to/raw/data", clean_dir="/path/to/output")
# Process specific pollutants
process_data(pollutants=["PM25", "PM10", "NO2"])
Features
AirPy provides the following features for air quality data processing:
- Data cleaning and formatting
- Outlier detection and removal
- Consecutive repeat detection
- Unit inconsistency correction for nitrogen compounds
- Time series analysis and visualization
Data Format
AirPy supports the following file formats:
- CSV files
- Excel (XLSX) files
The data should follow one of these filename formats:
15Min_YEAR_site_ID_STATION_CITY_ORG_15Min.csvRaw_data_15Min_YEAR_site_ID_STATION_CITY_ORG_15Min.csvsite_ID_YEAR.csv- Live data format:
site_IDYYYYMMDDHHMMSS.xlsx
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file airpy_tool-1.0.2.tar.gz.
File metadata
- Download URL: airpy_tool-1.0.2.tar.gz
- Upload date:
- Size: 32.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f97a3407665a6d0604183ab791778b9f8814eb9d0faaf4121a71f3223b897b68
|
|
| MD5 |
e3d5cbb0233fb4edacc299c7c9df9846
|
|
| BLAKE2b-256 |
dfff28df1cd58b7e770dc8f37e4b554bbaaae23f3cee78f292217cbbf814d291
|
File details
Details for the file airpy_tool-1.0.2-py3-none-any.whl.
File metadata
- Download URL: airpy_tool-1.0.2-py3-none-any.whl
- Upload date:
- Size: 32.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
826d023beb1d6737fc6e58b9c04d0b2299c614bf535d9ee2a5dabae344be3d7d
|
|
| MD5 |
99e1a76c231514ed2f200b64654d0c0a
|
|
| BLAKE2b-256 |
c50eeb137b7f3992c2f0f2e3c3d6ac2250c83d61123eb66a46717021d465db63
|