OOPS
qg::ObsSpaceQG Class Reference

ObsSpace for QG model. More...

#include <ObsSpaceQG.h>

Inheritance diagram for qg::ObsSpaceQG:
Collaboration diagram for qg::ObsSpaceQG:

Public Member Functions

 ObsSpaceQG (const eckit::Configuration &, const eckit::mpi::Comm &, const util::DateTime &, const util::DateTime &, const eckit::mpi::Comm &)
 create full ObsSpace (read or generate data) More...
 
 ObsSpaceQG (const ObsSpaceQG &, const eckit::geometry::Point2 &, const eckit::Configuration &)
 create local ObsSpace More...
 
 ~ObsSpaceQG ()
 
void getdb (const std::string &, int &) const
 read data or metadata More...
 
void putdb (const std::string &, const int &) const
 save data or metadata More...
 
bool has (const std::string &col) const
 check if variable is in ObsSpace More...
 
std::unique_ptr< LocationsQGlocations (const util::DateTime &t1, const util::DateTime &t2) const
 create locations between times (t1, t2] More...
 
void printJo (const ObsVecQG &, const ObsVecQG &) const
 
int nobs () const
 return number of observations (unique locations) More...
 
const oops::Variablesobsvariables () const
 return variables simulated by ObsOperators More...
 
const std::string & obsname () const
 observation type More...
 
const std::vector< int > & localobs () const
 local observations indices More...
 
const F90odbtoFortran () const
 interface with Fortran More...
 
- Public Member Functions inherited from oops::ObsSpaceBase
 ObsSpaceBase (const eckit::Configuration &, const eckit::mpi::Comm &, const util::DateTime &, const util::DateTime &)
 
virtual ~ObsSpaceBase ()
 
const util::DateTime & windowStart () const
 Access information. More...
 
const util::DateTime & windowEnd () const
 
int64_t getSeed () const
 

Private Member Functions

void print (std::ostream &) const
 

Private Attributes

F90odb key_
 
const std::string obsname_
 
const util::DateTime winbgn_
 
const util::DateTime winend_
 
oops::Variables obsvars_
 
std::vector< int > localobs_
 
bool isLocal_
 
const eckit::mpi::Comm & comm_
 

Static Private Attributes

static std::map< std::string, F90odbtheObsFileRegister_
 
static int theObsFileCount_ = 0
 

Detailed Description

ObsSpace for QG model.

Definition at line 44 of file ObsSpaceQG.h.

Constructor & Destructor Documentation

◆ ObsSpaceQG() [1/2]

qg::ObsSpaceQG::ObsSpaceQG ( const eckit::Configuration &  config,
const eckit::mpi::Comm &  comm,
const util::DateTime &  bgn,
const util::DateTime &  end,
const eckit::mpi::Comm &  timeComm 
)

create full ObsSpace (read or generate data)

Definition at line 41 of file ObsSpaceQG.cc.

Here is the call graph for this function:

◆ ObsSpaceQG() [2/2]

qg::ObsSpaceQG::ObsSpaceQG ( const ObsSpaceQG obsdb,
const eckit::geometry::Point2 &  refPoint,
const eckit::Configuration &  conf 
)

create local ObsSpace

Definition at line 113 of file ObsSpaceQG.cc.

Here is the call graph for this function:

◆ ~ObsSpaceQG()

qg::ObsSpaceQG::~ObsSpaceQG ( )

Definition at line 142 of file ObsSpaceQG.cc.

Here is the call graph for this function:

Member Function Documentation

◆ getdb()

void qg::ObsSpaceQG::getdb ( const std::string &  col,
int &  keyData 
) const

read data or metadata

Definition at line 155 of file ObsSpaceQG.cc.

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

◆ has()

bool qg::ObsSpaceQG::has ( const std::string &  col) const

check if variable is in ObsSpace

Definition at line 174 of file ObsSpaceQG.cc.

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

◆ localobs()

const std::vector<int>& qg::ObsSpaceQG::localobs ( ) const
inline

local observations indices

Definition at line 78 of file ObsSpaceQG.h.

Here is the caller graph for this function:

◆ locations()

std::unique_ptr< LocationsQG > qg::ObsSpaceQG::locations ( const util::DateTime &  t1,
const util::DateTime &  t2 
) const

create locations between times (t1, t2]

Definition at line 182 of file ObsSpaceQG.cc.

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

◆ nobs()

int qg::ObsSpaceQG::nobs ( ) const

return number of observations (unique locations)

Definition at line 199 of file ObsSpaceQG.cc.

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

◆ obsname()

const std::string& qg::ObsSpaceQG::obsname ( ) const
inline

observation type

Definition at line 75 of file ObsSpaceQG.h.

Here is the caller graph for this function:

◆ obsvariables()

const oops::Variables& qg::ObsSpaceQG::obsvariables ( ) const
inline

return variables simulated by ObsOperators

Definition at line 72 of file ObsSpaceQG.h.

Here is the caller graph for this function:

◆ print()

void qg::ObsSpaceQG::print ( std::ostream &  os) const
private

Definition at line 210 of file ObsSpaceQG.cc.

Here is the call graph for this function:

◆ printJo()

void qg::ObsSpaceQG::printJo ( const ObsVecQG dy,
const ObsVecQG grad 
) const

Definition at line 193 of file ObsSpaceQG.cc.

◆ putdb()

void qg::ObsSpaceQG::putdb ( const std::string &  col,
const int &  keyData 
) const

save data or metadata

Definition at line 166 of file ObsSpaceQG.cc.

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

◆ toFortran()

const F90odb& qg::ObsSpaceQG::toFortran ( ) const
inline

interface with Fortran

Definition at line 81 of file ObsSpaceQG.h.

Member Data Documentation

◆ comm_

const eckit::mpi::Comm& qg::ObsSpaceQG::comm_
private

Definition at line 93 of file ObsSpaceQG.h.

◆ isLocal_

bool qg::ObsSpaceQG::isLocal_
private

Definition at line 92 of file ObsSpaceQG.h.

◆ key_

F90odb qg::ObsSpaceQG::key_
private

Definition at line 86 of file ObsSpaceQG.h.

◆ localobs_

std::vector<int> qg::ObsSpaceQG::localobs_
private

Definition at line 91 of file ObsSpaceQG.h.

◆ obsname_

const std::string qg::ObsSpaceQG::obsname_
private

Definition at line 87 of file ObsSpaceQG.h.

◆ obsvars_

oops::Variables qg::ObsSpaceQG::obsvars_
private

Definition at line 90 of file ObsSpaceQG.h.

◆ theObsFileCount_

int qg::ObsSpaceQG::theObsFileCount_ = 0
staticprivate

Definition at line 97 of file ObsSpaceQG.h.

◆ theObsFileRegister_

std::map< std::string, F90odb > qg::ObsSpaceQG::theObsFileRegister_
staticprivate

Definition at line 96 of file ObsSpaceQG.h.

◆ winbgn_

const util::DateTime qg::ObsSpaceQG::winbgn_
private

Definition at line 88 of file ObsSpaceQG.h.

◆ winend_

const util::DateTime qg::ObsSpaceQG::winend_
private

Definition at line 89 of file ObsSpaceQG.h.


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