Skip to main content

Utility functions for using the SmartSMEAR API

Project description

SMEAR API Tools

This projects contains functions that help interacting with the Smart SMEAR API.

Installation

pip install smear-api-tools

Usage

Example 1

Download DMPS data from Hyytiälä field station for each day in May, 2018

import pandas as pd
from smear_api_tools import getDmpsData

may2018 = pd.date_range(start='2018-05-01',end='2018-05-31')
v = getDmpsData(station='HYY',dates=may2018)

Example 2

List all variables in the database and write them to a file.

import pandas as pd
from smear_api_tools import listAllData

listAllData().to_csv("all_data.csv")

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://avaa.tdata.fi/web/smart/smear/api

https://avaa.tdata.fi/web/smart/smear/terms-of-use

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-api-tools-0.1.0.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

smear_api_tools-0.1.0-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

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