sweq_split: SWEQ split state

Description Usage Arguments Value Examples

View source: R/utils_geom.R

Description

Split a state vector into the h,u and r components. Basically the opposite of sweq_stack

Usage

1
sweq_split(state, ndim, names.only = FALSE)

Arguments

state

Vector (3ndim) or matrix (3ndim x N) if ensemble

ndim

number of dimensions in physical space

names.only

T/F create factors (useful in sweq_plot)

Value

a list with components h, u and r, each of size ndim

Examples

1
2
3
4
5
state0 <- .sweq_init(10, umean=0, unoise=FALSE, topo=1)
hur <- sweq_split(state0$state, 10)
h <- hur$h
u <- hur$u
r <- hur$r

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