Description Usage Arguments Examples
View source: R/hysplit_trajectory.R
The function executes single/multiple forward or backward HYSPLIT trajectory runs using specified meteorological datasets.
1 2 3 4 5 6 | hysplit_trajectory(lat = 49.263, lon = -123.25, height = 50,
duration = 24, days = NULL, daily_hours = 0,
direction = "forward", met_type = "reanalysis", vert_motion = 0,
model_height = 20000, extended_met = FALSE, config = NULL,
ascdata = NULL, traj_name = NULL, binary_path = NULL,
met_dir = NULL, exec_dir = NULL, clean_up = TRUE)
|
lat, lon, height |
The receptor position in terms of latitude and longitude (both in decimal degrees), and height in meters above ground level. |
duration |
The duration of each model run (whether it is in the forward direction or running backwards) in hours. |
days |
A vector of days that the model will run. This is combined with
the |
daily_hours |
A vector of daily hours for initiations of runs across the
given |
direction |
An option to select whether to conduct the model in the
|
met_type |
The type of meteorological data files to use. The options
are: |
vert_motion |
A numbered option to select the method used to simulation
vertical motion. The methods are: |
model_height |
The upper limit of the model domain in meters. |
extended_met |
An option to report additional meteorological data along each output trajectory. |
config |
A configuration list serves to internally generate the
|
ascdata |
An ascdata list that will be used to create the |
traj_name |
An optional, descriptive name for the output file collection. |
binary_path |
An optional path to a HYSPLIT trajectory model binary. When not specified, the model binary will be chosen from several available in the package (based on the user's platform). |
met_dir |
An optional file path for storage and access of meteorological data files. |
exec_dir |
An optional file path for the working directory of the model input and output files. |
clean_up |
An option to make the |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
library(lubridate)
# Run a trajectory model 4 times a day
# for 6 days in 2012 using NCEP/NCAR
# reanalysis data
trajectory <-
hysplit_trajectory(
lat = 50.108,
lon = -122.942,
height = 100,
duration = 48,
days = seq(
lubridate::ymd("2012-02-22"),
lubridate::ymd("2012-02-27"),
by = "1 day"
),
daily_hours = c(0, 6, 12, 18)
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.