writeSmet {sarp.snowprofile} | R Documentation |
Write a SMET file
Description
Write data into a SMET file https://models.slf.ch/docserver/meteoio/SMET_specifications.pdf
Usage
writeSmet(smet, filename)
Arguments
smet |
A data structure that resembles a smet file (i.e., list containing metadata and a data.frame, see example in readSmet) |
filename |
Filepath to be written |
Value
Generates smet file
Author(s)
fherla, shorton
See Also
readSmet, snowprofileSno, snowprofilePrf, snowprofilePro
Examples
## First read example smet file provided in package
(Wx = readSmet(system.file('extdata', 'example.smet', package = 'sarp.snowprofile')))
## Then write Wx to a new temp file and show the file
writeSmet(Wx, filename = file.path(tempdir(), 'file.smet'))
file.show(file.path(tempdir(), 'file.smet'))
## Check whether it can be read back in
(WxNew <- readSmet(file.path(tempdir(), 'file.smet')))
[Package sarp.snowprofile version 1.3.2 Index]