Read and Write SMET Files

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.


smetlite

R-CMD-check

The goal of smetlite is to ease working with SMET files from meteorology. The specification of these files you find in https://models.slf.ch/docserver/meteoio/SMET_specifications.pdf.

A few short example smet files are included in the package; real life examples you can for instance download from https://www.envidat.ch/dataset/38112bee-f865-4b29-ba19-47a99ba78833/resource/3074d1dc-6083-4025-9ac4-484cfa88658b/download/wfj_optimaldataset_v7.smet or https://www.envidat.ch/dataset/a9264e9f-ea9b-4c89-b471-464efb891826/resource/a5918c50-6716-4dcf-b462-e1970ae1e072/download/wfj.smet.

Suggestions for useful extension of this tiny package are very welcome!

Installation

You can install the development version of smetlite from GitHub with:

# install.packages("devtools")
devtools::install_github("baseldatascience/smetlite")

Example

Simple example how to read in a smet file:

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

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("smetlite")

0.2.10 by Reinhold Koch, 3 years ago


https://github.com/BaselDataScience/smetlite, https://baseldatascience.github.io/smetlite/


Browse source code at https://github.com/cran/smetlite


Authors: Reinhold Koch [aut, cre, cph]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports readr, stringr

Suggests tinytest


See at CRAN