11 #ifndef LORENZ95_OBSVEC1D_H_
12 #define LORENZ95_OBSVEC1D_H_
14 #include <Eigen/Dense>
19 #include "oops/util/ObjectCounter.h"
20 #include "oops/util/Printable.h"
24 template <
typename DATATYPE>
class ObsData1D;
33 private util::ObjectCounter<ObsVec1D> {
35 static const std::string
classname() {
return "lorenz95::ObsVec1D";}
68 unsigned int nobs()
const;
72 void save(
const std::string &)
const;
73 void read(
const std::string &);
78 void print(std::ostream &)
const;
Data in observation space.
A Simple Observation Data Handler.
Vector in observation space.
unsigned int nobs() const
void mask(const ObsData1D< int > &)
std::vector< double > data_
size_t packEigenSize(const ObsVec1D &) const
void axpy(const double &, const ObsVec1D &)
const double & operator[](const std::size_t ii) const
const ObsTable & obsdb() const
const double & missing() const
void ones()
set all values to ones (for tests)
Eigen::VectorXd packEigen(const ObsVec1D &) const
ObsVec1D & operator=(const ObsVec1D &)
ObsVec1D & operator*=(const double &)
void print(std::ostream &) const
double dot_product_with(const ObsVec1D &) const
double & operator[](const std::size_t ii)
void read(const std::string &)
static const std::string classname()
ObsVec1D & operator-=(const ObsVec1D &)
ObsVec1D & operator/=(const ObsVec1D &)
void save(const std::string &) const
ObsVec1D & operator+=(const ObsVec1D &)
ObsVec1D(const ObsTable &, const std::string &name="")
The namespace for the L95 model.