Learn R Programming

SplitR (version 0.4)

add_params: Add model parameters

Description

Add modelling parameters to a model object

Usage

add_params(model, lat = NULL, lon = NULL, height = NULL,
  duration = NULL, run_period = NULL, start_day = NULL,
  start_hour = NULL, daily_hours = NULL, direction = NULL,
  met_type = NULL, vert_motion = NULL, model_height = NULL)

Arguments

model

a SplitR modeling object.

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 one or several model runs (either forward or backward) in hours.

run_period

the extended period (i.e., days, years) when the model will initialize and run. This can take the form of a single-length vector for a day ("YYYY-MM-DD") or year (YYYY), or, a vector of length 2 to specify the range of days or years.

start_day

is specific to a dispersion model and it refers to 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

is specific to a dispersion model and it should indicate which hour in the start_day that modeling will begin. Provide this as an integer (from 0 to 23).

daily_hours

are specific to a trajectory model and should consist of a single daily hour as an integer (from 0 to 23), or, a vector of several daily hours represented as integers.

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), reanalysis (NCAR/NCEP global reanalysis data), and narr (North American Regional Reanalysis).

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.