hyr_run | R Documentation |
Function to command HYSPLIT (Hybrid Single Particle Lagrangian Integrated Trajectory Model) from R.
hyr_run(
df,
directory_exec = "exec/",
directory_input,
directory_output,
verbose = FALSE,
progress = FALSE
)
df |
Data frame/tibble which contains a set of variables. See examples for an example of what variables need to be included. |
directory_exec |
Location of HYSPLIT's executable files. Ensure executable
permissions have been set for the |
directory_input |
Location of input meteorological files for HYSPLIT. |
directory_output |
Location of where HYSPLIT should write its trajectory outputs to. |
verbose |
Should the function give messages? |
progress |
Should a progress bar be displayed? |
Stuart K. Grange
importTraj
, trajPlot
,
HYSPLIT home,
read_hyr
## Not run:
# Create a tibble with all the things the hyr_run function requires
data_receptor <- tribble(
~latitude, ~longitude, ~runtime, ~interval, ~start_height, ~model_height, ~start, ~end,
36.150735, -5.349437, -120, "24 hour", 10, 10000, "2018-06-25", "2018-07-02"
) %>%
mutate(start = as.POSIXct(start),
end = as.POSIXct(end))
# Run hysplit, directories will be different on your system
hyr_run(
data_receptor,
directory_exec = "~/programmes/hysplit/trunk/exec",
directory_input = "/media/storage/data/hysplit",
directory_output = "~/Desktop/hysplit_outputs",
verbose = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.