Skip to content

Instantly share code, notes, and snippets.

View tbrycekelly's full-sized avatar

Thomas Bryce Kelly tbrycekelly

View GitHub Profile
@tbrycekelly
tbrycekelly / Sargassum Trajectories.R
Last active September 15, 2023 17:30
Script used to load, model, and plot Sargassum trajectories in the North Atlantic for McGillicuddy et al.
library(TheSource)
source('R/Particle Trajectories v2 functions.R')
stn = readRDS('stn.rds') # Load sampling site information
## Setup model
n = 500
particles = init.lagrangian.particles(lon = rep(stn$Lon, n), lat = rep(stn$Lat, n), time = rep(stn$Datetime, n))
particles$Station = rep(stn$Station, n)