11 #ifndef OOPS_RUNS_HOFX_H_ 12 #define OOPS_RUNS_HOFX_H_ 16 #include <boost/scoped_ptr.hpp> 17 #include <boost/shared_ptr.hpp> 19 #include "eckit/config/LocalConfiguration.h" 34 #include "oops/util/DateTime.h" 35 #include "oops/util/Duration.h" 36 #include "oops/util/Logger.h" 54 instantiateFilterFactory<MODEL>();
59 int execute(
const eckit::Configuration & fullConfig)
const {
61 const eckit::LocalConfiguration windowConf(fullConfig,
"Assimilation Window");
62 const util::Duration winlen(windowConf.getString(
"Length"));
63 const util::DateTime winbgn(windowConf.getString(
"Begin"));
64 const util::DateTime winend(winbgn + winlen);
65 Log::info() <<
"Observation window is:" << windowConf << std::endl;
68 const eckit::LocalConfiguration resolConfig(fullConfig,
"Geometry");
72 const eckit::LocalConfiguration modelConfig(fullConfig,
"Model");
76 const eckit::LocalConfiguration initialConfig(fullConfig,
"Initial Condition");
77 Log::info() <<
"Initial configuration is:" << initialConfig << std::endl;
79 Log::test() <<
"Initial state: " << xx << std::endl;
87 eckit::LocalConfiguration prtConf;
88 fullConfig.get(
"Prints", prtConf);
92 eckit::LocalConfiguration biasConf;
93 fullConfig.get(
"ObsBias", biasConf);
97 eckit::LocalConfiguration obsconf(fullConfig,
"Observations");
98 Log::debug() <<
"Observations configuration is:" << obsconf << std::endl;
103 eckit::LocalConfiguration filterConf;
104 obsconf.get(
"ObsFilters", filterConf);
108 boost::shared_ptr<Observer<MODEL, State_> >
113 model.forecast(xx, moderr, winlen, post);
114 Log::info() <<
"HofX: Finished observation computation." << std::endl;
115 Log::test() <<
"Final state: " << xx << std::endl;
118 boost::scoped_ptr<Observations_> yobs(pobs->release());
119 Log::test() <<
"H(x): " << *yobs << std::endl;
134 #endif // OOPS_RUNS_HOFX_H_ std::string appname() const
Geometry< MODEL > Geometry_
Observations< MODEL > Observations_
Encapsulates the model state.
The namespace for the main oops code.
ObsAuxControl< MODEL > ObsAuxCtrl_
ModelAuxControl< MODEL > ModelAux_
ObsSpaces< MODEL > ObsSpace_
Handles writing-out of forecast fields.
subroutine, public info(self)
int execute(const eckit::Configuration &fullConfig) const
Encapsulates the nonlinear forecast model.
ObsOperators< MODEL > ObsOperator_
Computes observation equivalent during model run.
Control model post processing.
ObsFilters< MODEL > ObsFilters_
void enrollProcessor(PostBase_ *pp)