ensembleMetadata.extract

Limit ensemble metadata to specific variables


Syntax



Description

obj = obj.extract(variableNames)
obj = obj.extract(v)

Updates the ensembleMetadata object to only include metadata for the listed variables. All unlisted variables are removed from the ensembleMetadata object.


Input Arguments

variableNames

string vector
The names of the variables to keep in the ensembleMetadata object.

v

logical vector | vector, linear indices
The indices of the variables to keep in the ensembleMetadata object. If a logical vector, must have one element per variable in the state vector.

Output Arguments

obj

scalar ensembleMetadata object
The ensembleMetadata object with updated variables.