Skip to contents

Read a csv file containing a daily meterorological timeseries as a column. The file must be a .csv file (Comma Separated Values) using the semi-column ";" as column delimiter. It is found in the directory defined by the metData environment variable.

Usage

readMet(station, metVar = "TX", out = c("dailyMet", "data.frame"))

Arguments

station

A list as returned by findStationMF.

metVar

The meteorological variable.

out

The class of the returned object.

Value

An object inheriting from the "data.frame" class, by default a dailyMet object.

Details

The fields are as follows.

  • Code Character: the code to be used for the station

  • Date The date in POSIX format Y-m-d

  • TX The temperature in Celsius.

  • Source Character code giving the source of the data, useful if several sources are used in "blended" .

Note

The files that can be read are located in the repository defined in the system variable metData. You may need to set this variable by using Sys.setenv, possibly in a Rprofile of .Renviron file.

Examples

if (FALSE) {
   ## read data for Bordeaux-Merignac
   s <- findStationMF("bordeaux-mer")
   Met <- readMet(s)
}