trajectory2field: Transform an input object into a 'field' object

View source: R/as.trajectory.R

trajectory2fieldR Documentation

Transform an input object into a field object

Description

Transform a trajectory object into a field object by aggregating it in time and space.

Usage

trajectory2field(
  x,
  dt = "month",
  dx = 2,
  dy = 2,
  radius = 5e+05,
  it = NULL,
  is = NULL,
  verbose = FALSE
)

Arguments

x

a trajectory object

dt

frequency of output: 'month', 'season', 'quarter' (same as 'season') or 'year'

dx

resolution in longitude direction (unit: degrees)

dy

resolution in latitude direction (unit: degrees)

radius

radius within which to look for trajectories for each grid point (unit: m)

it

a time index, e.g., a range of years: c(1984,2019)

is

a spatial index, e.g., a list with longitude and latitude ranges: list(lon=c(0,45), lat=c(45,70))

verbose

a boolean; if TRUE print information about progress

Value

a field object

See Also

as.field as.trajectory CCI track.events


metno/esd documentation built on April 29, 2024, 3:34 p.m.