Read a csv File Containing Daily Meteorological Timeseries and Add Extra Variables
readMet.RdRead 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.
Details
The fields are as follows.
CodeCharacter: the code to be used for the stationDateThe date in POSIX format Y-m-dTX The temperature in Celsius.
SourceCharacter 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)
}