Learn R Programming

SplitR (version 0.4)

hysplit_dispersion: Conduct HYSPLIT dispersion runs

Description

The function executes single/multiple forward or backward HYSPLIT dispersion runs using specified meteorological datasets.

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

lat

the starting latitude (in decimal degrees) for the model run(s).

lon

the starting longitude (in decimal degrees) for the model run(s).

height

the starting height (in meters above ground level) for the model run(s).

duration

the duration of each model run (either forward or backward) in hours.

start_day

the day that the model will initialize and run. This should take the form of a single-length vector for a day ("YYYY-MM-DD").

start_hour

a single daily hour as an integer hour (from 0 to 23).

direction

an option to select whether to conduct the model in the forward or backward directions.

met_type

an option to select meteorological data files. The options are gdas1 (Global Data Assimilation System 1-degree resolution data) and reanalysis (NCAR/NCEP global reanalysis data).

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.

model_height

the upper limit of the model domain in meters.

particle_num

the number of particles released by source during each release cycle.

particle_max

the number of particles released by a source during a model run.

emissions

the numbers corresponding to the stored emissions presets. These presets are specified using the function hysplit_dispersion_define("emissions").

species

the numbers corresponding to the stored species presets. These presets are specified using the function hysplit_dispersion_define("species").

grids

the numbers corresponding to the stored grid presets. These presets are specified using the function hysplit_dispersion_define("grids").

return_disp_df

an option to return a data frame with dispersion data.

write_disp_CSV

an option to write disperison data to a CSV file.

disp_name

an optional, descriptive name for the output file collection.

Examples

Run this code
# NOT RUN {
# 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")
# }

Run the code above in your browser using DataLab