subsampleX: Get a member from an X list of ensemble variables

Description Usage Arguments Details Value Author(s)

View source: R/subsampleX.R

Description

Extract one member for all variable kinds and times in a X object. See details below.

Usage

1
subsampleX(X, ims)

Arguments

X

A X object as described in the details below

ims

member index

Details

X is list, where each component represents a state vector kind of variable (an 'xKIND'). Each X[[xKIND]] has the slot '$val', which is itself a list, with each component representing a time. These times match the slot 'X[[xKIND]]$timelab', and each 'it' time contains a matrix representing an ensemble state vector, each member in a column. The function cycles about variable kinds and times and extract one single member, preserving the X structure.

Value

A single-member X object

Author(s)

Javier Garcia-Pintado


garciapintado/rDAF documentation built on May 25, 2019, 7:26 p.m.