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.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: smear_data_api-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 a1bf4992d016ee5f9ed05b1431cfc698060468e0bffd55058a57f8de172a1551
MD5 306b5609a415a3489f378034279e7394
BLAKE2b-256 b3128959a0a755be3b09f7d5bf0b5ec2d90628e1a771d4478ddc364f78d042e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: smear_data_api-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 26c3426480ec4453a636561a00437b25b996643ab3d77f1c39d3477ac3847a57
MD5 b1110dbdbde53caaa8c848c3de618faa
BLAKE2b-256 c1c213c762be9f158ff0a237cdf8244a4c71bc99fe563d1cfa96eb9f672469c0

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