Child pages
  • Using SMEAR API
Skip to end of metadata
Go to start of metadata

SMEAR database can be accessed from anywhere using the API. Here's some examples for constructing API calls.

Matlab script example for downloading and parsing data into numeric matrix form.
Note that until version R2014a you must use urlread() for retrieving the data whereas in newer versions the recommended tool is webread().

Getting the data into Python as Pandas data frame is very simple:

import pandas
url="https://avaa.tdata.fi/smear-services/smeardata.jsp?table=VAR_META&variables=NOX_4,SO2_1,O3_1&from=2017-05-01%2000:00:00&to=2017-05-01%2001:00:00&quality=ANY&averaging=30MIN&type=ARITHMETIC"
data=pandas.read_csv(url)



  • No labels