Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run trajectories #80

Open
Picornell opened this issue Jul 31, 2023 · 1 comment
Open

Unable to run trajectories #80

Picornell opened this issue Jul 31, 2023 · 1 comment

Comments

@Picornell
Copy link

I am not able to run the trajectories, even when using the examples provided in the documentation:

library(splitr)
library(here)

trajectory <-
hysplit_trajectory(
lat = 42.83752,
lon = -80.30364,
height = 50,
duration = 24,
days = "2012-03-12",
daily_hours = c(0, 6, 12, 18),
direction = "forward",
met_type = "gdas1",
extended_met = TRUE,
met_dir = here::here("met"),
exec_dir = here::here("out")
)

This returns me warnings saying:
Warning messages:
1: In shell(sys_cmd) :
'(cd "F:/[my_path]/out" && "C:[my_path]/R/win-library/4.2/splitr/win/hyts_std.exe" > NUL 2>&1)' execution failed with error code 900
Please, note that I have replaced the real directory by "[my_path]" to avoid publishing unnecessary information.

Then it generates the "trajectory" object but it is empty.
¿How can I solve that?

@SGMStalin
Copy link

When you add

met_dir = here::here("met")
exec_dir = here::here("out")

... you need to create those directories in your working directory, previously. However, by the second warning, it looks like it could be a problem with HYSPLIT (not R package) installation on your machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants