-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
I run the following code to create a HYSPLIT backward model. However, the _trajectory_plot()_ function plots only the base map, not the trajectories.
#HYSPLIT Backtrajectory Analysis
library(splitr)
library(lubridate)
#library(devtools)
#install_github("rich-iannone/splitr")
#Prevent timing out
getOption('timeout')
options(timeout=10000)
#Build the model
trajectory_model <-hysplit_trajectory(
lat = 9.99645,
lon = 76.3427,
height = 30,
duration = 48,
met_type = "reanalysis",
direction = "backward",
days = seq(
lubridate::ymd("2023-01-01"),
lubridate::ymd("2023-01-10"),
by = "1 day"
),
daily_hours = c(8,16,24)
)
#Remove the missing values (NAs)
trajectory_model_complete <-trajectory_model[complete.cases(trajectory_model), ]
#Plot the trajectories
trajectory_plot(trajectory_model_complete)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels