UFO
ufo::ObsDiagnostics Class Reference

#include <ObsDiagnostics.h>

Inheritance diagram for ufo::ObsDiagnostics:
Collaboration diagram for ufo::ObsDiagnostics:

Public Member Functions

 ObsDiagnostics (const ioda::ObsSpace &, const Locations &, const oops::Variables &)
 
 ObsDiagnostics (const eckit::Configuration &, const ioda::ObsSpace &, const oops::Variables &)
 
 ~ObsDiagnostics ()
 
void allocate (const int nlev, const oops::Variables &vars)
 Allocate diagnostics for variables vars with nlev number of levels. More...
 
void save (const std::vector< double > &, const std::string &, const int)
 
int & toFortran ()
 
const int & toFortran () const
 
bool has (const std::string &var) const
 
size_t nlevs (const std::string &) const
 
void get (std::vector< float > &, const std::string &) const
 
void get (std::vector< float > &, const std::string &, const int) const
 
void write (const eckit::Configuration &config) const
 

Private Member Functions

void print (std::ostream &) const
 

Private Attributes

const ioda::ObsSpace & obsdb_
 
GeoVaLs gdiags_
 

Detailed Description

Definition at line 34 of file src/ufo/ObsDiagnostics.h.

Constructor & Destructor Documentation

◆ ObsDiagnostics() [1/2]

ufo::ObsDiagnostics::ObsDiagnostics ( const ioda::ObsSpace &  os,
const Locations locs,
const oops::Variables &  vars 
)

Definition at line 23 of file ObsDiagnostics.cc.

◆ ObsDiagnostics() [2/2]

ufo::ObsDiagnostics::ObsDiagnostics ( const eckit::Configuration &  conf,
const ioda::ObsSpace &  os,
const oops::Variables &  vars 
)

Definition at line 30 of file ObsDiagnostics.cc.

◆ ~ObsDiagnostics()

ufo::ObsDiagnostics::~ObsDiagnostics ( )
inline

Definition at line 40 of file src/ufo/ObsDiagnostics.h.

Member Function Documentation

◆ allocate()

void ufo::ObsDiagnostics::allocate ( const int  nlev,
const oops::Variables &  vars 
)

Allocate diagnostics for variables vars with nlev number of levels.

Fails if at least one of the vars doesn't exist in the ObsDiagnostics object. Only allocates variables that haven't been allocated before. Fails if one of vars is already allocated with a number of levels different than nlev; doesn't reallocate variables that are already allocated with nlev.

Definition at line 37 of file ObsDiagnostics.cc.

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

◆ get() [1/2]

void ufo::ObsDiagnostics::get ( std::vector< float > &  vals,
const std::string &  var 
) const

Definition at line 57 of file ObsDiagnostics.cc.

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

◆ get() [2/2]

void ufo::ObsDiagnostics::get ( std::vector< float > &  vals,
const std::string &  var,
const int  lev 
) const

Definition at line 63 of file ObsDiagnostics.cc.

Here is the call graph for this function:

◆ has()

bool ufo::ObsDiagnostics::has ( const std::string &  var) const
inline

Definition at line 56 of file src/ufo/ObsDiagnostics.h.

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

◆ nlevs()

size_t ufo::ObsDiagnostics::nlevs ( const std::string &  var) const

Definition at line 51 of file ObsDiagnostics.cc.

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

◆ print()

void ufo::ObsDiagnostics::print ( std::ostream &  os) const
private

Definition at line 70 of file ObsDiagnostics.cc.

◆ save()

void ufo::ObsDiagnostics::save ( const std::vector< double > &  vals,
const std::string &  var,
const int  lev 
)

Definition at line 43 of file ObsDiagnostics.cc.

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

◆ toFortran() [1/2]

int& ufo::ObsDiagnostics::toFortran ( )
inline

Definition at line 53 of file src/ufo/ObsDiagnostics.h.

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

◆ toFortran() [2/2]

const int& ufo::ObsDiagnostics::toFortran ( ) const
inline

Definition at line 54 of file src/ufo/ObsDiagnostics.h.

Here is the call graph for this function:

◆ write()

void ufo::ObsDiagnostics::write ( const eckit::Configuration &  config) const
inline

Definition at line 61 of file src/ufo/ObsDiagnostics.h.

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

Member Data Documentation

◆ gdiags_

GeoVaLs ufo::ObsDiagnostics::gdiags_
private

Definition at line 67 of file src/ufo/ObsDiagnostics.h.

◆ obsdb_

const ioda::ObsSpace& ufo::ObsDiagnostics::obsdb_
private

Definition at line 65 of file src/ufo/ObsDiagnostics.h.


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