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.
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)
Built Distribution
Close
Hashes for smear_api_tools-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 220a0f00047ae5c5b57178075c190c97cdcbe47e71714f6d40cfe4cab412a319 |
|
MD5 | b23e4417e8fababe244b0bc912db971e |
|
BLAKE2b-256 | d01422bd577944c97ad1fbe8d0ead7019274ea7e45eb1bb82e8ce03814676e12 |