Read an ECA File and Add Extra Varables
readECA.Rd
Read a file as provided by the ECA Data with StatId
Usage
readECA(file, out = c("dailyMet", "data.frame"), station = NA, id = NA)
Arguments
- file
The file to read as in
read.table
.- out
The class of the returned object. The
"dailyMet"
S3 class with creatordailyMet
extends thedata.frame
by attaching some information to the data as attributes. This information inclues the name of the meteorological variable.- station, id
Optional character vectors with length one that will be attached as attributes of the object when the output class is
"dailyMet"
.
Value
A data frame with the temperature TX
, the date
Date
and several functions of the Date.
A data frame with the columns read in the file and
possibly also those built by the dailyMet
function.
Caution
For now, only ECA files for so called
blended data are used, and the variable is assumed to
be a temperature. Also the SOUID
field identifying the
source is discarded.
The station identifier StatId
used by
European Climate Assessment & Dataset project (ECA&D)
https://www.ecad.eu/ is different from the one used by
Météo France. Also, ECA&D makes a distinction between
Station Id (StatId
) and Source Id
(SouId
).