get.start.pts: Get starting points Get starting points for simulations based...

View source: R/get.start.pts.r

get.start.ptsR Documentation

Get starting points Get starting points for simulations based on distribution of observed locations for a given month.

Description

Get starting points Get starting points for simulations based on distribution of observed locations for a given month.

Usage

get.start.pts(
  dat,
  n = 100,
  months = 1:12,
  mask = rmask,
  posnames = c("coords.x1", "coords.x2")
)

Arguments

dat

input data. see data(nsdata)

n

number of starting points

posnames

names of the longitude and latitude columns in the data frame

Details

The number of starting points is the number of tracks desired for simulation in a given month

Value

a list of starting points

Examples

library(fields)
data(nsfish)
spts = get.start.pts(nsfish)
world(xlim = c(-100, 0), ylim = c(20, 50))
lapply(spts, points, pch = 19, cex = .4)

galuardi/SatTagSim documentation built on Oct. 22, 2024, 10:18 a.m.