-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathas.met.Rd
59 lines (54 loc) · 1.85 KB
/
as.met.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/met.R
\name{as.met}
\alias{as.met}
\title{Coerce Data Into a met Object}
\usage{
as.met(time, temperature, pressure, u, v, filename = "(constructed from data)")
}
\arguments{
\item{time}{Either a vector of observation times (or character strings that can be
coerced into times) or the output from \code{canadaHCD::hcd_hourly} (see reference 1).}
\item{temperature}{vector of temperatures.}
\item{pressure}{vector of pressures.}
\item{u}{vector of eastward wind speed in m/s.}
\item{v}{vector of northward wind speed in m/s.}
\item{filename}{optional string indicating data source}
}
\value{
A \linkS4class{met} object.
}
\description{
Coerces a dataset into a met dataset. This fills in only a few of the typical
data fields, so the returned object is much
sparser than the output from \code{\link[=read.met]{read.met()}}. Also, almost no
metadata fields are filled in, so the resultant object does not store
station location, units of the data, data-quality flags, etc. Anyone working
with data from Environment Canada (reference 2) is advised to use \code{\link[=read.met]{read.met()}}
instead of the present function.
}
\references{
\enumerate{
\item The \code{canadaHCD} package is in development by Gavin Simpson; see
\verb{https://github.com/gavinsimpson/canadaHCD} for instructions on how
to download and install from GitHub.
\item Environment Canada website for Historical Climate Data
\verb{https://climate.weather.gc.ca/index_e.html}
}
}
\seealso{
Other things related to met data:
\code{\link{[[,met-method}},
\code{\link{[[<-,met-method}},
\code{\link{download.met}()},
\code{\link{met}},
\code{\link{met-class}},
\code{\link{plot,met-method}},
\code{\link{read.met}()},
\code{\link{subset,met-method}},
\code{\link{summary,met-method}}
}
\author{
Dan Kelley
}
\concept{things related to met data}