Metadata-Version: 2.1
Name: smear-data-api
Version: 1.0.2
Summary: A Python package for interacting with the SMEAR API and processing data for continuous period.
Home-page: https://github.com/airdipu/SMEAR-data-api
Author: Abdur Rahman
Author-email: abdur.rahman@helsinki.fi
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas >=1.0.0
Requires-Dist: numpy >=1.18.0

# SMEAR Data API

A Python package for interacting with the SMEAR API and processing data.

## Features
- Fetch time-series data from the SMEAR API.
- Combine data over a range of years.
- Process and clean data for analysis.

## Installation
To install the package locally, follow these steps:

1. Clone the repository:
   ```bash
   git clone https://github.com/yourusername/SMEAR-data-api.git
   cd SMEAR-data-api
   ```

2. Build the package:
   ```bash
   python3 setup.py sdist bdist_wheel
   ```

3. Install the package locally:
   ```bash
   pip install .
   ```

## Usage
After installing the package, you can use it in your Python scripts. Here's an example:

```python
from smear.smear import getData
from utils.data_extract import fetch_combined_data

# Define variables and time range
variables = ['HYY_META.O3672', 'HYY_META.NOx672']
start_year = 1996
end_year = 2024

# Fetch combined data
data_fetched = fetch_combined_data(variables, start_year, end_year)

# Print the fetched data
print(data_fetched)
```

## Directory Structure

```
SMEAR-data-api/
├── smear_api/
│   ├── __init__.py
│   ├── tools.py
├── utils/
│   ├── __init__.py
│   ├── data_extract.py
├── setup.py
├── README.md
├── LICENSE
```

## License
This project is licensed under the MIT License. See the `LICENSE` file for details.


## Resources

Junninen, H., Lauri, A., Keronen, P., Aalto, P., Hiltunen, V., Hari, P., Kulmala, M. 2009. Smart-SMEAR: on-line data exploration and visualization tool for SMEAR stations. Boreal Environment Research 14, 447–457.

https://smear.avaa.csc.fi/
