OOPS
lorenz95::ObsTableView Class Reference

A Simple Observation Data Handler. More...

#include <ObsTableView.h>

Inheritance diagram for lorenz95::ObsTableView:
Collaboration diagram for lorenz95::ObsTableView:

Public Member Functions

 ObsTableView (const eckit::Configuration &, const eckit::mpi::Comm &, const util::DateTime &, const util::DateTime &, const eckit::mpi::Comm &)
 
 ObsTableView (const ObsTableView &, const eckit::geometry::Point2 &, const eckit::Configuration &)
 
 ~ObsTableView ()
 
bool has (const std::string &) const
 
void putdb (const std::string &, const std::vector< int > &) const
 
void putdb (const std::string &, const std::vector< float > &) const
 
void putdb (const std::string &, const std::vector< double > &) const
 
void getdb (const std::string &, std::vector< int > &) const
 
void getdb (const std::string &, std::vector< float > &) const
 
void getdb (const std::string &, std::vector< double > &) const
 
void random (std::vector< double > &) const
 
unsigned int nobs () const
 
std::vector< double > locations () const
 
void generateDistribution (const eckit::Configuration &)
 
std::unique_ptr< LocsL95locations (const util::DateTime &t1, const util::DateTime &t2) const
 
void printJo (const ObsVec1D &, const ObsVec1D &)
 
size_t index (const size_t ii) const
 
const std::string & obsname () const
 
const util::DateTime & windowStart () const
 
const util::DateTime & windowEnd () const
 
const oops::Variablesobsvariables () const
 
const std::vector< double > & obsdist () const
 

Static Public Member Functions

static const std::string classname ()
 

Private Member Functions

void print (std::ostream &) const
 

Private Attributes

std::shared_ptr< ObsTableobstable_
 
std::vector< size_t > localobs_
 
std::vector< double > obsdist_
 

Detailed Description

A Simple Observation Data Handler.

ObsTableView defines a simple observation handler that mimicks the interfaces required from ODB.

Definition at line 37 of file ObsTableView.h.

Constructor & Destructor Documentation

◆ ObsTableView() [1/2]

lorenz95::ObsTableView::ObsTableView ( const eckit::Configuration &  config,
const eckit::mpi::Comm &  comm,
const util::DateTime &  bgn,
const util::DateTime &  end,
const eckit::mpi::Comm &  time 
)

Definition at line 25 of file ObsTableView.cc.

Here is the call graph for this function:

◆ ObsTableView() [2/2]

lorenz95::ObsTableView::ObsTableView ( const ObsTableView obstable,
const eckit::geometry::Point2 &  center,
const eckit::Configuration &  conf 
)

Definition at line 37 of file ObsTableView.cc.

Here is the call graph for this function:

◆ ~ObsTableView()

lorenz95::ObsTableView::~ObsTableView ( )

Definition at line 57 of file ObsTableView.cc.

Member Function Documentation

◆ classname()

static const std::string lorenz95::ObsTableView::classname ( )
inlinestatic

Definition at line 40 of file ObsTableView.h.

◆ generateDistribution()

void lorenz95::ObsTableView::generateDistribution ( const eckit::Configuration &  conf)

Definition at line 177 of file ObsTableView.cc.

Here is the call graph for this function:

◆ getdb() [1/3]

void lorenz95::ObsTableView::getdb ( const std::string &  col,
std::vector< double > &  vec 
) const

Definition at line 139 of file ObsTableView.cc.

Here is the call graph for this function:

◆ getdb() [2/3]

void lorenz95::ObsTableView::getdb ( const std::string &  col,
std::vector< float > &  vec 
) const

Definition at line 127 of file ObsTableView.cc.

Here is the call graph for this function:

◆ getdb() [3/3]

void lorenz95::ObsTableView::getdb ( const std::string &  col,
std::vector< int > &  vec 
) const

Definition at line 115 of file ObsTableView.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ has()

bool lorenz95::ObsTableView::has ( const std::string &  col) const

Definition at line 63 of file ObsTableView.cc.

Here is the caller graph for this function:

◆ index()

size_t lorenz95::ObsTableView::index ( const size_t  ii) const
inline

Definition at line 63 of file ObsTableView.h.

Here is the caller graph for this function:

◆ locations() [1/2]

std::vector< double > lorenz95::ObsTableView::locations ( ) const

Definition at line 165 of file ObsTableView.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ locations() [2/2]

std::unique_ptr< LocsL95 > lorenz95::ObsTableView::locations ( const util::DateTime &  t1,
const util::DateTime &  t2 
) const

Definition at line 187 of file ObsTableView.cc.

Here is the call graph for this function:

◆ nobs()

unsigned int lorenz95::ObsTableView::nobs ( ) const

Definition at line 158 of file ObsTableView.cc.

Here is the caller graph for this function:

◆ obsdist()

const std::vector<double>& lorenz95::ObsTableView::obsdist ( ) const
inline

Definition at line 69 of file ObsTableView.h.

Here is the caller graph for this function:

◆ obsname()

const std::string& lorenz95::ObsTableView::obsname ( ) const
inline

Definition at line 64 of file ObsTableView.h.

◆ obsvariables()

const oops::Variables& lorenz95::ObsTableView::obsvariables ( ) const
inline

Definition at line 68 of file ObsTableView.h.

◆ print()

void lorenz95::ObsTableView::print ( std::ostream &  os) const
private

Definition at line 218 of file ObsTableView.cc.

◆ printJo()

void lorenz95::ObsTableView::printJo ( const ObsVec1D x1,
const ObsVec1D x2 
)

Definition at line 212 of file ObsTableView.cc.

◆ putdb() [1/3]

void lorenz95::ObsTableView::putdb ( const std::string &  col,
const std::vector< double > &  vec 
) const

Definition at line 100 of file ObsTableView.cc.

Here is the call graph for this function:

◆ putdb() [2/3]

void lorenz95::ObsTableView::putdb ( const std::string &  col,
const std::vector< float > &  vec 
) const

Definition at line 85 of file ObsTableView.cc.

Here is the call graph for this function:

◆ putdb() [3/3]

void lorenz95::ObsTableView::putdb ( const std::string &  col,
const std::vector< int > &  vec 
) const

Definition at line 70 of file ObsTableView.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ random()

void lorenz95::ObsTableView::random ( std::vector< double > &  v) const

Definition at line 151 of file ObsTableView.cc.

Here is the caller graph for this function:

◆ windowEnd()

const util::DateTime& lorenz95::ObsTableView::windowEnd ( ) const
inline

Definition at line 67 of file ObsTableView.h.

◆ windowStart()

const util::DateTime& lorenz95::ObsTableView::windowStart ( ) const
inline

Definition at line 66 of file ObsTableView.h.

Member Data Documentation

◆ localobs_

std::vector<size_t> lorenz95::ObsTableView::localobs_
private

Definition at line 73 of file ObsTableView.h.

◆ obsdist_

std::vector<double> lorenz95::ObsTableView::obsdist_
private

Definition at line 74 of file ObsTableView.h.

◆ obstable_

std::shared_ptr<ObsTable> lorenz95::ObsTableView::obstable_
private

Definition at line 72 of file ObsTableView.h.


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