rich-iannone / splitr

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

issue with met_type="hrrr" and direction="backward" #61

Open dmmmercer opened 3 years ago

dmmmercer commented 3 years ago

I am trying to use splitr with the "hrrr" met_type (files already downloaded) and the "backward" direction. This short test code works if I run with "hrrr" but with forward direction, instead. Or, it works if I use a different met_type and backward direction. But with 'hrrr' and 'backward' I get this error: Error in seq.int(0, to0 - from, by) : wrong sign in 'by' argument

I am new to splitr but would like to use it to run a series of backward trajectories with hrrr. Any help would be welcome!

Run HYSPLIT with hrrr downloaded met files

trajectory <- hysplit_trajectory( traj_name = "July152015traj", lat = 42.3316, lon = -122.8806,

height = 100,

     #model_height = 10000,
     duration = 4,
     run_period = c("2015-07-15"),
     daily_hours = c(12, 18),
     direction = "backward",
     met_type = "hrrr",
     met_dir = ("D:/SplitRwd/met"),
     exec_dir = ("D:/SplitRwd/output3"),
     extended_met = FALSE)
XiaoyuChen97 commented 7 months ago

I just find there might be some small issues inside function get_met_hrrr, it can be solved by revising this part code manually.