create_points_pattern: Generate points proportionally to surface chlorophyll-a...

Description Usage Arguments Value Examples

View source: R/create_points_pattern.R

Description

Transform surface-chlorophyll values into a randomly distributed relative number of points on a plane depending on the value of each cell. A multiplicator value is used to control the total number of points. A mixed layer depth is defined in the third column (particles are at the surface at zero, below surface at negative values)

Usage

1
create_points_pattern(raster, multi = 1, mld = 0)

Arguments

raster

input chlorophyll RasterLayer

multi

multiplicator to control number of points

mld

mixed layer depth

Value

list with matrix of longitude, latitude, mixed layer depth

Examples

1
2
3
4
5
 
data(surface_chl)
pts <- create_points_pattern(surface_chl, multi=1000)
plot(surface_chl)
points(pts,cex=0.1)

janjansen86/ptrackr documentation built on May 18, 2019, 2:38 p.m.