Package 'smetlite'

Title: Read and Write SMET Files
Description: Simple class to hold contents of a SMET file as specified in Bavay (2021) <https://code.wsl.ch/snow-models/meteoio/-/blob/master/doc/SMET_specifications.pdf>. There numerical meteorological measurements are all based on MKS (SI) units and timestamp is standardized to UTC time.
Authors: Reinhold Koch [aut, cre, cph]
Maintainer: Reinhold Koch <[email protected]>
License: GPL (>= 3)
Version: 0.2.10
Built: 2025-02-10 04:29:11 UTC
Source: https://github.com/baseldatascience/smetlite

Help Index


Read a SMET file into a smet dataframe

Description

Read a SMET file into a smet dataframe

Usage

read_smet(filename)

Arguments

filename

file or connection to be read by readr::read_table()

Value

dataframe with all

Examples

read_smet(system.file('examples/test.smet', package = 'smetlite'))

A named list explaining the permissible time and measurement variable names.

Description

A named list explaining the permissible time and measurement variable names.

Usage

smet_dict

Format

## 'smet_dict'

P

Air pressure, in Pa

TA

Temperature Air, in Kelvin

TSS

Temperature Snow Surface, in Kelvin

TSG

Temperature Surface Ground, in Kelvin

RH

Relative Humidity, between 0 and 1

VW_MAX

Maximum wind velocity, in m/s

VW

Velocity Wind, in m/s

DW

Direction Wind, in degrees, clockwise and north being zero degrees

ISWR

Incoming Short Wave Radiation, in W/m2

OSWR

Reflected Short Wave Radiation, in W/m2

ILWR

Incoming Long Wave Radiation, in W/m2

OLWR

Outgoing Long Wave Radiation, in W/m2

PINT

Precipitation Intensity, in mm/h, as an average over the timestep

PSUM

Precipitation accumulation, in mm, summed over the last timestep

HS

Height Snow, in m

timestamp

ISO 8601 Combined date and time formatted

julian

the decimal number of days and fractions of a day since January 1, 4713 BC Greenwich noon, Julian proleptic calendar3. If both timestamps and julian are present, they must be within less than 1 second of each other.

Source

https://models.slf.ch/docserver/meteoio/SMET_specifications.pdf


Test SMET data

Description

Artificial data derived from rifugio Vaccarone

Usage

test_smet

Format

## 'test_smet' A data frame with 47 rows and 5 columns:

timestamp

Timestamp of measurement

VW

Velocity Wind, in m/s

DW

Direction Wind, in degrees, clockwise and north being zero degrees

TA

Temperature Air, in Kelvin

HS

Height Snow, in m

Source

<http://webgis.arpa.piemonte.it/webmeteo/meteo.php?CODTOT=001114901>