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 |
retrieve header
header(smet)
header(smet)
smet |
object of class smet |
named list of header information
header(read_smet(system.file('examples/test.smet', package = 'smetlite')))
header(read_smet(system.file('examples/test.smet', package = 'smetlite')))
Read a SMET file into a smet dataframe
read_smet(filename)
read_smet(filename)
filename |
file or connection to be read by readr::read_table() |
dataframe with all
read_smet(system.file('examples/test.smet', package = 'smetlite'))
read_smet(system.file('examples/test.smet', package = 'smetlite'))
A named list explaining the permissible time and measurement variable names.
smet_dict
smet_dict
## 'smet_dict'
Air pressure, in Pa
Temperature Air, in Kelvin
Temperature Snow Surface, in Kelvin
Temperature Surface Ground, in Kelvin
Relative Humidity, between 0 and 1
Maximum wind velocity, in m/s
Velocity Wind, in m/s
Direction Wind, in degrees, clockwise and north being zero degrees
Incoming Short Wave Radiation, in W/m2
Reflected Short Wave Radiation, in W/m2
Incoming Long Wave Radiation, in W/m2
Outgoing Long Wave Radiation, in W/m2
Precipitation Intensity, in mm/h, as an average over the timestep
Precipitation accumulation, in mm, summed over the last timestep
Height Snow, in m
ISO 8601 Combined date and time formatted
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.
https://models.slf.ch/docserver/meteoio/SMET_specifications.pdf
Artificial data derived from rifugio Vaccarone
test_smet
test_smet
## 'test_smet' A data frame with 47 rows and 5 columns:
Timestamp of measurement
Velocity Wind, in m/s
Direction Wind, in degrees, clockwise and north being zero degrees
Temperature Air, in Kelvin
Height Snow, in m
<http://webgis.arpa.piemonte.it/webmeteo/meteo.php?CODTOT=001114901>