PSM.baymag.rows

Indicate the stateVector rows used to run a BayMAG PSM


Syntax



Description

obj = obj.rows(row)

Indicate the state vector row that should be used as the SST input for the BayMAG PSM when calling the “PSM.estimate” command. The input is a column vector with one element per climate variable that varies across the ensemble. The order of rows should be SST, SSS, Omega, and pH, excluding any variables that are fixed. Uses the same state vector row for each ensemble member and each ensemble in an evolving set.

obj = obj.rows(memberRows)

Indicate which state vector rows to use for each ensemble member. This syntax allows you to use different state vector rows for different ensemble members. The input is a matrix with one column per ensemble member, and one row per climate variable that varies across the ensemble. The order of rows should be SST, SSS, Omega, and pH, excluding any variables that are fixed.

obj = obj.rows(evolvingRows)

Indicate which state vector row to use for different ensembles in an evolving set. This syntax allows you to use different state vector rows for different ensembles in an evolving set. The input should be a 3D array of either size [1-4 x 1 x nEvolving] or of size [1-4 x nMembers x nEvolving]. If the second dimension has a size of 1, uses the same row for all the ensemble members in a particular evolving ensemble. If the second dimension has a size of nMembers, allows you to use a different row for each ensemble member in each evolving ensemble.

rows = obj.rows

Returns the current rows for the PSM object

obj = obj.rows(‘delete’)

Deletes any currently specified rows from the BayMAG PSM object.


Input Arguments

row

column vector, linear indices [1-4]
The state vector row that holds the climate variables required to run the BayMAG PSM. Uses the same row for all ensemble members and ensembles in an evolving set. The order of rows should be SST, SSS, omega, and pH, excluding any variables that are fixed.

memberRows

matrix, linear indices [1-4 x nMembers]
Indicates which state vector row to use for each ensemble member. Should be a matrix with one column per ensemble member, and one row per variable. The order of rows should be SST, SSS, Omega, and pH, excluding any variables that are fixed. Uses the same rows for the ensemble members in different evolving ensembles.

evolvingRows

3*D* array, linear indices [1-4 x 1|*nMembers* x nEvolving]
Indicates which state vector row to use for different ensembles in an evolving set. Should be a 3D array, and the number of elements along the third dimension should match the number of ensembles in the evolving set. If the second dimension has a length of 1, uses the same row for all the ensemble members in each evolving ensemble. If the second dimension has a length equal to the number of ensemble members, allows you to indicate which state vector row to use for each ensemble member in each evolving ensemble.

Output Arguments

obj

scalar baymag object
The BayMAG PSM with updated rows

rows

linear indices, [1-4 x 1|*nMembers* x 1|*nEvolving*]
The current rows for the BayMAG PSM.