get_meteo_available: Get Available Meteorological Components

View source: R/data_cleaning.R

get_meteo_availableR Documentation

Get Available Meteorological Components

Description

Identifies unique meteorological components from the provided environmental data, filtering only those that match the predefined UBA naming conventions. These components include "GLO", "LDR", "RFE", "TMP", "WIG", "WIR", "WIND_U", and "WIND_V".

Usage

get_meteo_available(env_data)

Arguments

env_data

Data table containing environmental data. Must contain column "Komponente"

Value

A vector of available meteorological components.

Examples

# Example environmental data
env_data <- data.table::data.table(
  Komponente = c("TMP", "NO2", "GLO", "WIR"),
  Wert = c(25, 40, 300, 50),
  date = as.POSIXct(c(
    "2023-01-01 08:00:00", "2023-01-01 09:00:00",
    "2023-01-01 10:00:00", "2023-01-01 11:00:00"
  ))
)
# Get available meteorological components
meteo_components <- get_meteo_available(env_data)
print(meteo_components)

ubair documentation built on April 12, 2025, 2:12 a.m.