Description Usage Arguments Details Value
View source: R/define_inputs.R
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
1 2 | define_inputs(units, startday, endday, start.hours = c(0, 6, 12, 18),
duration = 240)
|
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. |
define_input
takes as input a species name and
provides a table of HYSPLIT species parameters accepted by 'run_disperser_parallel()'
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.