Utility functions for using the SmartSMEAR API
Project description
SMEAR API Tools
This project contains functions that help interacting with the SmartSMEAR API.
Installation
pip install smear-api-tools
Documentation
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 that contain the term "SO2" in the database and write them to a file.
import pandas as pd
from smear_api_tools import listAllData
listAllData("SO2").to_csv("all_so2_data.csv")
Example 3
Download number concentration between 3 nm and 200 nm from the urban measurement station in Kumpula for the year 2021.
import pandas as pd
from smear_api_tools import getConcData
c = getConcData(station='KUM',dp1=3e-9,dp2=200e-9,start='2021-01-31',end='2021-12-31')
Example 4
Download condensation sink from Värriö research station between 2013-07-01
and
2013-07-05
import pandas as pd
from smear_api_tools import getCS
cs = getCS(station='VAR',start="2013-07-01",end="2013-07-05")
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
Built Distribution
Hashes for smear_api_tools-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54578002e57e1f54da5724737338f9a86b3e781574537208d898038a6ec2a7ca |
|
MD5 | 1086f91837550189efbdcf80ab3103a5 |
|
BLAKE2b-256 | ef18f3e8371f521c707714c9c4dfe1e0fd9ec0ae4decf4cb012bd6f2ac2ae59a |