rich-iannone / splitr

Use the HYSPLIT model from inside R and do more with it
Other
141 stars 60 forks source link

Dispersion Model Error - "dir" is missing #8

Closed c422j381 closed 8 years ago

c422j381 commented 8 years ago

When I run the create_disp_model example, I get an error that "dir" is missing, with no default. I am running the example code :

dispersion_model <- create_disp_model(name="crystal_clean") %>% add_emissions( rate = 5, duration = 6, start_day = "2016-07-18", start_hour = 0) %>% add_species( pdiam = 1, density = 1, shape_factor = 1) %>% add_grid( range = c(0.5,0.5), division = c(0.1,0.1)) %>% add_params( lat = 49.0, lon = -123.0, height = 10, duration = 24, start_day = "2016-07-18", start_hour = 0, direction = "forward", met_type = "gdas1")

run_model(dispersion_model)

and I get the following error :

Error in paste0(dir, "/", "SETUP.CFG") : argument "dir" is missing, with no default

rich-iannone commented 8 years ago

I'll take a look at this. Thanks for filing this issue!

rich-iannone commented 8 years ago

@c422j381 This should be fixed now. Please reopen the issue if there's still a problem.