define_inputs: Define species parameters

Description Usage Arguments Details Value

View source: R/define_inputs.R

Description

Once HYSPLIT has been run for each emissions event, the simulated parcel locations are aggregated by source, time, and location. The functions in 'disperseR' are written to enable runs of many emissions events. o define an object that includes all emission events in a given time period, we can use the helper function 'define_inputs()'. This takes as inputs a starting and ending day, and outputs a table of values whose rows will later correspond to inputs into the main 'disperseR' functions. The following command combines the units defined above with four times a day for January-July in 2005

Usage

1
2
define_inputs(units, startday, endday, start.hours = c(0, 6, 12, 18),
  duration = 240)

Arguments

startday

starting day for HyADS runs, must be in standard YYY-MM-DD format

endday

starting day for HyADS runs, must be in standard YYY-MM-DD format

start.hours

vector of starting hours (integers between 0 and 23) for each HYSPLIT run. Defaults to c(0, 6, 12, 18), i.e., HYSPLIT runs initiated at 12:00am, 6:00am, 12:00pm, and 6:00pm.

duration

'duration = 240' denotes that the emitted air parcels are tracked for 240 hours (10 days). 10 days is the maximum (approximately) that sulfur stays in the atmosphere before it deposits to the ground.

Details

define_input takes as input a species name and provides a table of HYSPLIT species parameters accepted by 'run_disperser_parallel()'

Value

This function returns a data table of run parameters accepted by 'run_disperser_parallel()'

Once HYSPLIT has been run for each emissions event, the simulated parcel locations are aggregated by source, time, and location. The functions below are written to enable runs of many emissions events.


lhenneman/disperseR documentation built on Nov. 14, 2021, 6:24 p.m.