Skip to main content

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

Project description

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:

    git clone https://github.com/yourusername/SMEAR-data-api.git
    cd SMEAR-data-api
    
  2. Build the package:

    python3 setup.py sdist bdist_wheel
    
  3. Install the package locally:

    pip install .
    

Usage

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

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/

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

smear_data_api-1.0.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smear_data_api-1.0.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file smear_data_api-1.0.2.tar.gz.

File metadata

  • Download URL: smear_data_api-1.0.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for smear_data_api-1.0.2.tar.gz
Algorithm Hash digest
SHA256 69b69431ac917633bdcd7b203d36ad8af8175fa6d5a928276ab29d58908cc7aa
MD5 084d7b968b4252db8e3539c68d134a46
BLAKE2b-256 64c0d94bc2a06d8fb8649dccdde10e3d6750fe1ce6b041c5871813a5004b90c0

See more details on using hashes here.

File details

Details for the file smear_data_api-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: smear_data_api-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for smear_data_api-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8387472433fa51936bd412a41886e31c316cf40e2c3f3a1c471bba0b720b086f
MD5 4ca732f8a3dc7e167e7d1739acb0e5aa
BLAKE2b-256 a30e024402aea01ac933ad3f6af22d5b37792d26d417704e19c83fc4d469f98c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page