FV3 Bundle
oops/l95/src/lorenz95/ObsBiasCovariance.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2009-2016 ECMWF.
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  * In applying this licence, ECMWF does not waive the privileges and immunities
7  * granted to it by virtue of its status as an intergovernmental organisation nor
8  * does it submit to any jurisdiction.
9  */
10 
11 #ifndef LORENZ95_OBSBIASCOVARIANCE_H_
12 #define LORENZ95_OBSBIASCOVARIANCE_H_
13 
14 #include <ostream>
15 #include <string>
16 #include <boost/noncopyable.hpp>
17 
18 #include "eckit/config/LocalConfiguration.h"
19 #include "oops/util/ObjectCounter.h"
20 #include "oops/util/Printable.h"
21 
22 namespace eckit {
23  class Configuration;
24 }
25 
26 namespace lorenz95 {
27  class ObsBias;
28  class ObsBiasCorrection;
29 
30 // -----------------------------------------------------------------------------
31 
32 class ObsBiasCovariance : public util::Printable,
33  private boost::noncopyable,
34  private util::ObjectCounter<ObsBiasCovariance> {
35  public:
36  static const std::string classname() {return "lorenz95::ObsBiasCovariance";}
37 
38 /// Constructor, destructor
39  explicit ObsBiasCovariance(const eckit::Configuration &);
41 
42 /// Linear algebra operators
43  void linearize(const ObsBias &) {}
44  void multiply(const ObsBiasCorrection &, ObsBiasCorrection &) const;
46  void randomize(ObsBiasCorrection &) const;
47 
48  const eckit::Configuration & config() const {return conf_;}
49  bool active() const {return active_;}
50 
51  private:
52  void print(std::ostream &) const;
53  const eckit::LocalConfiguration conf_;
54  double variance_;
55  bool active_;
56 };
57 
58 // -----------------------------------------------------------------------------
59 
60 } // namespace lorenz95
61 
62 #endif // LORENZ95_OBSBIASCOVARIANCE_H_
void inverseMultiply(const ObsBiasCorrection &, ObsBiasCorrection &) const
Class to handle observation bias parameters.
ObsBiasCovariance(const eckit::Configuration &)
Constructor, destructor.
The namespace for the L95 model.
const eckit::Configuration & config() const
void multiply(const ObsBiasCorrection &, ObsBiasCorrection &) const
void randomize(ObsBiasCorrection &) const
void linearize(const ObsBias &)
Linear algebra operators.