make.sim.track.par: Simulate tracks in parallel

Description Usage Arguments Details Value Author(s) Examples

View source: R/make.sim.track.par.r

Description

Function to simulate a single track using monthly parameters, bathymetry and World Ocean Atlas SST in parallel

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
make.sim.track.par(
  tpar = tpar,
  morder = morder,
  sp = spts,
  bath = bath,
  sstmat = sstmat,
  seaslen = 30,
  sstol = 2,
  mcoptions = setup.parallel(),
  ...
)

Arguments

tpar

data frame of simulation parameters

morder

month order for simulation (e.g. start in June vs start in January)

sp

list of starting points

sstmat

list of lon, lat and 3D matrix of monthly sea surface temperature. see details

seaslen

length of each month to simulate. Defaults to 30 (days per month)

sstol

tolerance for sst matching. see details

mcoptions

This is a hidden variable that must be present to run in parallel

n

number of tracks to simulate

Details

sstmat in this package is a running average of index suitable temperature for each month. Each month has values 0-3. A value of 3, for example, represents areas suitable in the current month, previous month and next month. The sstol flag can make matching criteria more or less restrictive. The default value means that at least two months of suitability, centered on the current month, must be valid for a simulation point. Tracks may be generated by increasing morder (e.g. rep(morder, 2) for a 24 month track) Function uses mcoptions from setup.parallel to run in parallel.

Value

List of simulated tracks. Tracks are data frames with columns: lon lat month

Author(s)

Benjamin Galuardi

Examples

1

galuardi/SatTagSim documentation built on Nov. 15, 2020, 6:28 a.m.