This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |