forked from rich-iannone/splitr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhysplit_dispersion.Rd
109 lines (92 loc) · 3.32 KB
/
hysplit_dispersion.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hysplit_dispersion.R
\name{hysplit_dispersion}
\alias{hysplit_dispersion}
\title{Conduct HYSPLIT dispersion runs}
\usage{
hysplit_dispersion(lat = 49.263, lon = -123.25, height = 50,
duration = 24, start_day = "2015-07-01", start_hour = 0,
direction = "forward", met_type = "reanalysis", vert_motion = 0,
model_height = 20000, particle_num = 2500, particle_max = 10000,
emissions, species, grids, return_disp_df = TRUE, write_disp_CSV = TRUE,
disp_name = NULL)
}
\arguments{
\item{lat}{the starting latitude (in decimal
degrees) for the model run(s).}
\item{lon}{the starting longitude (in decimal
degrees) for the model run(s).}
\item{height}{the starting height (in meters above
ground level) for the model run(s).}
\item{duration}{the duration of each
model run (either forward or backward) in hours.}
\item{start_day}{the day that the model will
initialize and run. This should take the form of a
single-length vector for a day (\code{"YYYY-MM-DD"}).}
\item{start_hour}{a single daily hour as an
integer hour (from \code{0} to \code{23}).}
\item{direction}{an option to select whether to
conduct the model in the \code{forward} or
\code{backward} directions.}
\item{met_type}{an option to select meteorological
data files. The options are \code{gdas1} (Global Data
Assimilation System 1-degree resolution data) and
\code{reanalysis} (NCAR/NCEP global reanalysis data).}
\item{vert_motion}{a numbered option to
select the method used to simulation vertical
motion. The methods are: (0) input model data,
(1) isobaric, (2) isentropic, (3) constant density,
(4) isosigma, (5) from divergence, (6) remap MSL to
AGL, (7) average data, and (8) damped magnitude.}
\item{model_height}{the upper limit of the
model domain in meters.}
\item{particle_num}{the number of particles
released by source during each release cycle.}
\item{particle_max}{the number of particles
released by a source during a model run.}
\item{emissions}{the numbers corresponding to the
stored emissions presets. These presets are
specified using the function
\code{hysplit_dispersion_define("emissions")}.}
\item{species}{the numbers corresponding to the
stored species presets. These presets are specified
using the function
\code{hysplit_dispersion_define("species")}.}
\item{grids}{the numbers corresponding to the
stored grid presets. These presets are specified
using the function
\code{hysplit_dispersion_define("grids")}.}
\item{return_disp_df}{an option to return a data
frame with dispersion data.}
\item{write_disp_CSV}{an option to write disperison
data to a CSV file.}
\item{disp_name}{an optional, descriptive name for
the output file collection.}
}
\description{
The function executes single/multiple
forward or backward HYSPLIT dispersion runs using
specified meteorological datasets.
}
\examples{
\dontrun{
# Perform a dispersion run lasting 12 hours over
# two consecutive days, both starting at midnight;
# grid presets 1 and 2 will be used as sampling
# grids (presets for species and emissions are set
# to the first, which is the default)
hysplit_dispersion(
lat = 49.263,
lon = -123.250,
height = 15,
duration = 12,
run_type = "range",
start_day = "2012-02-01",
start_hour = 0,
emissions = 1,
species = 1,
grids = c(1,2),
return_disp_df = FALSE,
disp_name = "example")
}
}