read.met | R Documentation |
Reads some meteorological file formats used by the Environment Canada (see
reference 1). Since the agency does not publish the data formats, this
function has to be adjusted every few years, when a user finds that the
format has changed. Caution: as of March 2022, this function fails on some
on Windows machines, for reasons that seem to be related to the handling of
both file encoding and system encoding. Adjusting the encoding
parameter
of this function might help. If not, try reading the data with
read.csv()
and then using as.met()
to create a met object.
read.met(
file,
type = NULL,
skip = NULL,
encoding = "latin1",
tz = getOption("oceTz"),
debug = getOption("oceDebug")
)
file |
a character string naming a file that holds met data. |
type |
if |
skip |
integer giving the number of header lines that precede the
data. This is ignored unless |
encoding |
a character value that indicates the encoding to be used for
this data file, if it is textual. The default value for most functions is
|
tz |
timezone assumed for time data. This defaults to
|
debug |
a flag that turns on debugging. Set to 1 to get a moderate amount of debugging information, or to 2 to get more. |
A met object.
Dan Kelley
Environment Canada website for Historical Climate Data
https://climate.weather.gc.ca/index_e.html
Other things related to met data:
[[,met-method
,
[[<-,met-method
,
as.met()
,
download.met()
,
met-class
,
met
,
plot,met-method
,
subset,met-method
,
summary,met-method
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.