Skip to contents

Storages and Formats

Data Formats and Storages to store data

storage_local_rds() storage_local_tsv()
Local storage
storage_s3_rds()
s3 storage
format_hysplit()
Format defintion for hysplit back trajectories
format_ps()
Format defintion for ps data with endtime instead of interval
format_rolf()
rOstluft long format (rolf)
store_aqmet() store_hysplit() store_aqmet_public()
Predefined stores

Resampling data

Functions for resampling data between different intervals and applying statistical methods

resample()
Resampling data
pad() pad_serie()
Pad data
pad_year()
Pads data data to complete years
statistic_fun_factory()
Factory to generate statistical functions
treshold_wrapper_function()
Wrapper function for minimum capture threshold
gap_wrapper_function()
wrapper function for maximum number of consecutive NA values
wmean()
Calculates weighted arithmetic means of irregular data series

Statistic calculations

Applying resampling of data to get relevant Statistics

calculate_statstable()
Calculates stats described in a table
statstable_expand()
Expands compact statstable to a table with one stats per row
statstable_default()
Default Statstable
calculate_mass_concentrations()
Prepares data for stats calculations
calculate_O3_summer()
Calculates AOT40 and 7h mean from 9:00 - 16:00 CET from April until September
calculate_stats()
calculates a lot of stats

concentrations conversion

Functions for converting between Volume and Mass concentrations

convert_conc() convert_conc_multiple()
Convert between volume and mass concentrations
conversion_conc_fun_factory()
Factory to generate conc conversion functions
mass_to_parts()
Converts mass to volume concentration
parts_to_mass()
Converts mass to volume concentration
convert_get_R() convert_set_R() convert_get_mol_masses() convert_set_mol_masses() convert_get_conc_lookup() convert_set_conc_lookup()
Customize concentration conversion

Data read functions

Read data files from different sources

get_seepolizei() read_seepolizei_json()
Returns data of the Tecson meteo station placed at Tiefenbrunnen and Mythenquai water police station.
read_airmo_csv()
Reads an AIRMO Export in CSV Format
read_airmo_dat()
Reads an AIRMO Export in DAT Format
read_airmo_webexport()
Reads an AIRMO Export in CSV Webexport Format
read_ethz_iac()
Read an IAC/ETHZ meteo station file
read_nabel_txt()
Read a file from Nabel
read_seepolizei()
Reads historic data files of the Tecson meteo station placed at Tiefenbrunnen and Mythenquai water police station.
read_smn()
Reads a file from the SwissMetNet of MeteoSwiss
read_smn_multiple()
Reads a file from the SwissMetNet of MeteoSwiss containing multiple Exports
split_smn()
Splits a file from the SwissMetNet of MeteoSwiss containing multiple Exports

Long <> Wide Format conversion

Convert between rOstluft Long format and an openair compatible Wide format

openair_to_rolf()
Converts data from openair format to rolf
rolf_to_openair()
Converts data from rolf format to an openair compatible Format
rolf_to_openair_single()
Converts one parameter in a rolf data frame to an openair compatible format

Utility functions

Some functions to make the life of a programmer easier

pluck_parameter() pluck_interval() pluck_site() pluck_unit() pluck_year()
Quickly filter data
transform_crs() transform_LV95_to_WSG84() transform_WSG84_to_LV95() transform_LV03_to_WSG84() transform_WSG84_to_LV03()
Transform between Coordinate Reference Systems
import_directory()
Imports directory into store
meta_apply()
Transforms data based on an other meta table
save_excel_csv()
Speichert Datein in einer Excel kompatiblen CSV Datei