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

run trajectory with gfs0.25 files #76

Open
jordinagili opened this issue Nov 18, 2022 · 5 comments
Open

run trajectory with gfs0.25 files #76

jordinagili opened this issue Nov 18, 2022 · 5 comments

Comments

@jordinagili
Copy link

Hi everyone, I am trying to run the trajectories with the SPLITR package with GFS files which have 21 hours instead of 23. Then, the hours 22 and 23 are not found in the corresponding day's file because they are on the following day. How could that be fixed? Thank you very much.

@jordinagili
Copy link
Author

the error it gives is the following:

Error in dplyr::mutate_at():
! Can't subset columns that don't exist.
✖ Column year doesn't exist.
Run rlang::last_error() to see where the error occurred.
Warning message:
In shell(sys_cmd) :
'(cd "C:/hysplit/exec" && "C:/Users/Jordina/AppData/Local/R/win-library/4.2/splitr/win/hyts_std.exe" > NUL 2>&1)' execution failed with error code 900

rlang::last_error()
<error/vctrs_error_subscript_oob>
Error in dplyr::mutate_at():
! Can't subset columns that don't exist.
✖ Column year doesn't exist.


Backtrace:

  1. splitr::hysplit_trajectory(...)
  2. dplyr::mutate_at(...)
  3. dplyr:::manip_at(...)
  4. dplyr:::tbl_at_syms(...)
  5. dplyr:::tbl_at_vars(tbl, vars, .include_group_vars = .include_group_vars, error_call = error_call)
    Run rlang::last_trace() to see the full context.

@jordinagili
Copy link
Author

and the code I used:

trajectory <-
hysplit_trajectory(
lat = 42.411814,
lon = -6.979698,
height = 750,
duration = 120,
days = seq(
lubridate::ymd("2022-08-16"),
lubridate::ymd("2022-08-17"),
by = "1 day"
),
daily_hours = c(22),
direction = "backward",
met_type = "gfs0.25",
extended_met = TRUE,
met_dir = "C:/hysplit/gfs0p25",
exec_dir = "C:/hysplit/exec"
)

@jordinagili
Copy link
Author

This just happens when I run the back trajectories from 22 and 23 hours (daily_hours = c(22,23)). For the rest of the hours it works perfectly.

@af-font
Copy link

af-font commented Mar 8, 2023

I have the same problem, have you find a solution for that?

@gototophao
Copy link

have you solved?

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

3 participants