sweq_neighbours: SWEQ neighbours

Description Usage Arguments Value Examples

View source: R/utils_geom.R

Description

Find the neighbours around i, l in each direction It takes into account the ring structure of the space and the fact that the states has three components (h,u and r)

Usage

1
sweq_neighbours(i, l, ndim)

Arguments

i

the reference position

l

the number of neighbours in each direction

Value

a list with x.ind the indices of the neighbours and center the position i for h, u and r (in the vector state) local.center are the indices of the centers in the local space (x.local) to apply the update

Examples

1
sweq_neighbours(5, 2, 10)

robertsy/assimilr documentation built on May 27, 2019, 10:33 a.m.