pyarts.covariancematrix.CovarianceMatrix

class pyarts.covariancematrix.CovarianceMatrix(blocks, inverse_blocks=[], workspace=None)[source]

CovarianceMatrix representing the ARTS group of the same name

The CovarianceMatrix class is used to represent covariance matrices for OEM calculations in ARTS. It is represented as a block diagonal matrix where each block represents covariances between two retrieval quantities.

Since covariance matrices are symmetric only block lying on or above the diagonal are actually stored. The covariance matrix class is designed to hold both, the covariance matrix and its inverse.

__init__(blocks, inverse_blocks=[], workspace=None)[source]

Create a covariance matrix object.

Parameters
  • blocks (list) – List containing the blocks that make up the covariance matrix.

  • inverse_blocks – Blocks that make up the inverse of the covariance. Can be provided to avoid computation of the inverse of the covariance matrix.

  • workspaceWorkspace to associate the covariance matrix to.

Methods

__init__(blocks[, inverse_blocks, workspace])

Create a covariance matrix object.

from_xml(xmlelement)

Load a covariance matrix from an ARTS XML fiile.

to_dense()

Conversion to dense representation.

write_xml(xmlwriter[, attr])

Implements typhon xml serialization interface.

Attributes

blocks

inverse_blocks

workspace