OOPS
oops::ObsErrors< OBS > Class Template Reference

Container for ObsErrors for all observation types that are used in DA. More...

#include <ObsErrors.h>

Inheritance diagram for oops::ObsErrors< OBS >:
Collaboration diagram for oops::ObsErrors< OBS >:

Public Member Functions

 ObsErrors (const std::vector< Parameters_ > &, const ObsSpaces_ &)
 
 ObsErrors (const eckit::Configuration &, const ObsSpaces_ &)
 
size_t size () const
 Accessor and size. More...
 
ObsError_operator[] (const size_t ii)
 
const ObsError_operator[] (const size_t ii) const
 
void multiply (Departures_ &) const
 Multiply a Departure by \(R\). More...
 
void inverseMultiply (Departures_ &) const
 Multiply a Departure by \(R^{-1}\). More...
 
void randomize (Departures_ &) const
 Generate random perturbation. More...
 
void save (const std::string &) const
 Save obs errors. More...
 
Departures_ inverseVariance () const
 returns inverse of observation error variance More...
 

Static Public Member Functions

static const std::string classname ()
 

Private Types

typedef Departures< OBS > Departures_
 
typedef ObsError< OBS > ObsError_
 
typedef ObsErrorParametersWrapper< OBS > Parameters_
 
typedef ObsSpaces< OBS > ObsSpaces_
 

Private Member Functions

void print (std::ostream &) const override
 

Private Attributes

std::vector< ObsError_err_
 
const ObsSpaces_os_
 

Detailed Description

template<typename OBS>
class oops::ObsErrors< OBS >

Container for ObsErrors for all observation types that are used in DA.

Definition at line 33 of file ObsErrors.h.

Member Typedef Documentation

◆ Departures_

template<typename OBS >
typedef Departures<OBS> oops::ObsErrors< OBS >::Departures_
private

Definition at line 35 of file ObsErrors.h.

◆ ObsError_

template<typename OBS >
typedef ObsError<OBS> oops::ObsErrors< OBS >::ObsError_
private

Definition at line 36 of file ObsErrors.h.

◆ ObsSpaces_

template<typename OBS >
typedef ObsSpaces<OBS> oops::ObsErrors< OBS >::ObsSpaces_
private

Definition at line 38 of file ObsErrors.h.

◆ Parameters_

template<typename OBS >
typedef ObsErrorParametersWrapper<OBS> oops::ObsErrors< OBS >::Parameters_
private

Definition at line 37 of file ObsErrors.h.

Constructor & Destructor Documentation

◆ ObsErrors() [1/2]

template<typename OBS >
oops::ObsErrors< OBS >::ObsErrors ( const std::vector< Parameters_ > &  params,
const ObsSpaces_ os 
)

Definition at line 74 of file ObsErrors.h.

Here is the call graph for this function:

◆ ObsErrors() [2/2]

template<typename OBS >
oops::ObsErrors< OBS >::ObsErrors ( const eckit::Configuration &  config,
const ObsSpaces_ os 
)

Definition at line 89 of file ObsErrors.h.

Member Function Documentation

◆ classname()

template<typename OBS >
static const std::string oops::ObsErrors< OBS >::classname ( )
inlinestatic

Definition at line 41 of file ObsErrors.h.

◆ inverseMultiply()

template<typename OBS >
void oops::ObsErrors< OBS >::inverseMultiply ( Departures_ dy) const

Multiply a Departure by \(R^{-1}\).

Definition at line 108 of file ObsErrors.h.

◆ inverseVariance()

template<typename OBS >
Departures< OBS > oops::ObsErrors< OBS >::inverseVariance

returns inverse of observation error variance

Definition at line 135 of file ObsErrors.h.

◆ multiply()

template<typename OBS >
void oops::ObsErrors< OBS >::multiply ( Departures_ dy) const

Multiply a Departure by \(R\).

Definition at line 99 of file ObsErrors.h.

◆ operator[]() [1/2]

template<typename OBS >
ObsError_& oops::ObsErrors< OBS >::operator[] ( const size_t  ii)
inline

Definition at line 48 of file ObsErrors.h.

◆ operator[]() [2/2]

template<typename OBS >
const ObsError_& oops::ObsErrors< OBS >::operator[] ( const size_t  ii) const
inline

Definition at line 49 of file ObsErrors.h.

◆ print()

template<typename OBS >
void oops::ObsErrors< OBS >::print ( std::ostream &  os) const
overrideprivate

Definition at line 146 of file ObsErrors.h.

◆ randomize()

template<typename OBS >
void oops::ObsErrors< OBS >::randomize ( Departures_ dy) const

Generate random perturbation.

Definition at line 117 of file ObsErrors.h.

Here is the caller graph for this function:

◆ save()

template<typename OBS >
void oops::ObsErrors< OBS >::save ( const std::string &  name) const

Save obs errors.

Definition at line 126 of file ObsErrors.h.

◆ size()

template<typename OBS >
size_t oops::ObsErrors< OBS >::size ( ) const
inline

Accessor and size.

Definition at line 47 of file ObsErrors.h.

Member Data Documentation

◆ err_

template<typename OBS >
std::vector<ObsError_> oops::ObsErrors< OBS >::err_
private

Definition at line 67 of file ObsErrors.h.

◆ os_

template<typename OBS >
const ObsSpaces_& oops::ObsErrors< OBS >::os_
private

Definition at line 68 of file ObsErrors.h.


The documentation for this class was generated from the following file: