OOPS
|
Difference between two observation vectors. More...
#include <Departures.h>
Public Member Functions | |
Departures (const ObsSpaces_ &, const std::string &name="") | |
create Departures for all obs (read from ObsSpace if name is specified) More... | |
size_t | size () const |
Access. More... | |
ObsVector_ & | operator[] (const size_t ii) |
const ObsVector_ & | operator[] (const size_t ii) const |
Departures & | operator+= (const Departures &) |
Departures & | operator-= (const Departures &) |
Departures & | operator*= (const double &) |
Departures & | operator*= (const Departures &) |
Departures & | operator/= (const Departures &) |
void | zero () |
void | ones () |
void | random () |
void | invert () |
void | axpy (const double &, const Departures &) |
double | dot_product_with (const Departures &) const |
double | rms () const |
size_t | nobs () const |
Return number of departures (excluding departures that are masked out) More... | |
void | mask (ObsDataVec_< int >) |
Mask out departures where the passed in qc flags are > 0. More... | |
void | mask (const Departures &mask) |
Mask out departures where mask has missing values. More... | |
Eigen::VectorXd | packEigen (const Departures &) const |
Pack departures in an Eigen vector (excluding departures that are masked out) More... | |
size_t | packEigenSize (const Departures &) const |
Size of departures packed into an Eigen vector. More... | |
void | save (const std::string &) const |
Save departures values. More... | |
![]() | |
GeneralizedDepartures () | |
virtual | ~GeneralizedDepartures () |
Private Types | |
typedef ObsSpaces< OBS > | ObsSpaces_ |
typedef ObsVector< OBS > | ObsVector_ |
template<typename DATA > | |
using | ObsData_ = ObsDataVector< OBS, DATA > |
template<typename DATA > | |
using | ObsDataVec_ = std::vector< std::shared_ptr< ObsData_< DATA > >> |
Private Member Functions | |
void | print (std::ostream &) const |
Private Attributes | |
std::vector< ObsVector_ > | dep_ |
Data. More... | |
Difference between two observation vectors.
A departure is the difference between two observations. The archetypal example is \( \mathbf{y} - {\cal H}(\mathbf{x}) \).
Keeping an observation space vector here is necessary for the implementation of generic observation error covariance matrices.
Definition at line 44 of file Departures.h.
|
private |
Definition at line 47 of file Departures.h.
|
private |
Definition at line 48 of file Departures.h.
|
private |
Definition at line 45 of file Departures.h.
|
private |
Definition at line 46 of file Departures.h.
|
explicit |
create Departures for all obs (read from ObsSpace if name
is specified)
Definition at line 98 of file Departures.h.
void oops::Departures< OBS >::axpy | ( | const double & | zz, |
const Departures< OBS > & | rhs | ||
) |
Definition at line 177 of file Departures.h.
double oops::Departures< OBS >::dot_product_with | ( | const Departures< OBS > & | other | ) | const |
Definition at line 184 of file Departures.h.
void oops::Departures< OBS >::invert |
Definition at line 170 of file Departures.h.
void oops::Departures< OBS >::mask | ( | const Departures< OBS > & | mask | ) |
Mask out departures where mask
has missing values.
Definition at line 216 of file Departures.h.
void oops::Departures< OBS >::mask | ( | ObsDataVec_< int > | qcflags | ) |
Mask out departures where the passed in qc flags are > 0.
Definition at line 209 of file Departures.h.
size_t oops::Departures< OBS >::nobs |
Return number of departures (excluding departures that are masked out)
Definition at line 200 of file Departures.h.
void oops::Departures< OBS >::ones |
Departures< OBS > & oops::Departures< OBS >::operator*= | ( | const Departures< OBS > & | rhs | ) |
Definition at line 133 of file Departures.h.
Departures< OBS > & oops::Departures< OBS >::operator*= | ( | const double & | zz | ) |
Definition at line 125 of file Departures.h.
Departures< OBS > & oops::Departures< OBS >::operator+= | ( | const Departures< OBS > & | rhs | ) |
Definition at line 109 of file Departures.h.
Departures< OBS > & oops::Departures< OBS >::operator-= | ( | const Departures< OBS > & | rhs | ) |
Definition at line 117 of file Departures.h.
Departures< OBS > & oops::Departures< OBS >::operator/= | ( | const Departures< OBS > & | rhs | ) |
Definition at line 141 of file Departures.h.
|
inline |
Definition at line 56 of file Departures.h.
|
inline |
Definition at line 57 of file Departures.h.
Eigen::VectorXd oops::Departures< OBS >::packEigen | ( | const Departures< OBS > & | mask | ) | const |
Pack departures in an Eigen vector (excluding departures that are masked out)
Definition at line 223 of file Departures.h.
size_t oops::Departures< OBS >::packEigenSize | ( | const Departures< OBS > & | mask | ) | const |
Size of departures packed into an Eigen vector.
Definition at line 240 of file Departures.h.
|
privatevirtual |
Implements oops::GeneralizedDepartures.
Definition at line 256 of file Departures.h.
void oops::Departures< OBS >::random |
Definition at line 163 of file Departures.h.
double oops::Departures< OBS >::rms |
void oops::Departures< OBS >::save | ( | const std::string & | name | ) | const |
Save departures values.
Definition at line 249 of file Departures.h.
|
inline |
Access.
Definition at line 55 of file Departures.h.
void oops::Departures< OBS >::zero |
Definition at line 149 of file Departures.h.
|
private |
Data.
Definition at line 92 of file Departures.h.