Open joshkraft opened 6 years ago
It seems like we should have a helper function like traj_episodes()
that accepts timing and location information, along with an episode name for the group. This aligns nicely with an idea to add more columns to the tibble output from the trajectory model.
Let me think about this some more. I’ll post a proposal about how to enhance things here.
I am interested in running a series of HYSPLIT trajectories over certain periods of time. These periods were selected from a larger time series, I.E. "Select all periods of time with strong winds for at least 4 hours." The dataframe resulting the aforementioned function contains:
In a perfect world, I would like to feed this data into the SplitR function and calculate back trajectories for each hour within each episode. A second best option would be to calculate one trajectory for each episode.
When I run the code, I get the following error:
Another issue I can imagine running into (if I can get past the previous error) is episodes that begin on one day and end on another. This is fairly common in my dataset. I am not sure how to work around this.
For the full project, I am interested in working with a few thousand episodes. So right now I am trying to get a "proof of concept" to figure out if it can even be done with SplitR. I have attached a reprex below.
(this is my first time sharing code on Github so let me know if I am missing something.)
Created on 2018-07-02 by the reprex package (v0.2.0).