rich-iannone / splitr

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

DateTime issues with splitr #65

Open Salvosoda opened 3 years ago

Salvosoda commented 3 years ago

Hi Rich, Thank you in advance for your contribution or for the contribution of those who will help me to solve this problem.

I have installed the package:

devtools::install_github("rich-iannone/splitr")

I used the recommended code in your github page:

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") )

and I encountered two errors (one I managed to solve): 1) Error in Sys.setlocale("LC_Time", locale) ---> #and i SOLVE it thanks to MRPHarris

2) warning messages: 1: problem with mutate() input traj_dt. i all formats failed to parse. no formats found. ---> #I can't solve this problem. You can help me? i tried everything but i can't get over this problem. Thank you

N.B. I noticed that the trajectory is created but without the date and time information

Also, in -> exec_dir ... should I enter the exec folder contained in the hysplit installation file? -->(in my case: "C: \ hysplit4 \ exec")???

thanks for your valuable contribution S