ensemble.length
Returns the number of state vector rows for an ensemble
Syntax
Description
Returns the number of elements in the state vector for the ensemble. If the “useVariables” command has been applied to the ensemble, only counts elements of the variables being used by the ensemble.
Returns the lengths of the specified variables. Variable names and indices are interpreted in the context of variables being used by the ensemble. If the index is -1, selects all variables being used.
Indicate the scope in which to return the length of the state vector. If “used”|”u”|false, counts elements in variables being used by the ensemble. If “file”|”f”|true, counts elements in all variables saved in the .ens file.
Indicate the scope in which to interpret variable names and indices. If “used”|”u”|false, interprets names and indices in the context of variables being used by the state vector. If “file”|”f”|true, interprets names and indices in the context of all variables saved in the .ens file.
Input Arguments
v
variableNames
scope
[“used”|”u”|true (default)]: Return lengths relative to the set of variables being used by the ensemble object.
[“file”|”f|false]: Return lengths relative to the set of all variables stored in the .ens file.