Skip to content

The map appeared but the trajectories not. #83

@madpk

Description

@madpk
Screenshot 2023-12-03 152219 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions