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)

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.

Inspired by the work of Janne Lampilahti.

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.4.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.4-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smear_data_api-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 9cfb667979ccac692508c434e89ad83a178730e4a57a390910e466a6ebd65621
MD5 14ecf3708a0b5f2f4f2e048fc4c5ed2a
BLAKE2b-256 8da32964b4d98beece209ba2c5af52bd1ad074ffb810e762353642fdd6b91ad9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: smear_data_api-1.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9e671dc480cb24e4d2881ab6e0c4f447d50e18986cd959f568358588e4deffaf
MD5 6b8f83ff10088807bc40228d95a3aaf5
BLAKE2b-256 5648ebb1a48798d155743f9616d19841a4e294bd94799633c3c006dccfc6d676

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