8 #ifndef OOPS_RUNS_ENSHOFX_H_ 9 #define OOPS_RUNS_ENSHOFX_H_ 14 #include <boost/scoped_ptr.hpp> 15 #include <boost/shared_ptr.hpp> 17 #include "eckit/config/LocalConfiguration.h" 33 #include "oops/util/DateTime.h" 34 #include "oops/util/Duration.h" 35 #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 eckit::LocalConfiguration biasConf;
77 fullConfig.get(
"ObsBias", biasConf);
81 eckit::LocalConfiguration obsconf(fullConfig,
"Observations");
82 Log::debug() <<
"Observations configuration is:" << obsconf << std::endl;
87 eckit::LocalConfiguration filterConf;
88 obsconf.get(
"ObsFilters", filterConf);
92 const eckit::LocalConfiguration initialConfig(fullConfig,
"Initial Condition");
93 std::vector<eckit::LocalConfiguration> members;
94 initialConfig.get(
"state", members);
95 Log::debug() <<
"EnsHofX: using " << members.size() <<
" states." << std::endl;
100 for (
unsigned jj = 0; jj < members.size(); ++jj) {
102 Log::info() << jj <<
" member initial configuration is:" << members[jj] << std::endl;
104 Log::test() << jj <<
" member initial state: " << xx << std::endl;
111 eckit::LocalConfiguration prtConf;
112 fullConfig.get(
"Prints", prtConf);
116 boost::shared_ptr<Observer<MODEL, State_> >
121 model.forecast(xx, moderr, winlen, post);
122 Log::info() << jj <<
" member: finished observation computation" << std::endl;
123 Log::test() << jj <<
" member final state: " << xx << std::endl;
126 boost::scoped_ptr<Observations_> yobs(pobs->release());
127 Log::test() << jj <<
" member H(x): " << *yobs << std::endl;
129 obsens[jj].save(
"hofx_"+std::to_string(jj+1));
144 #endif // OOPS_RUNS_ENSHOFX_H_ Observations< MODEL > Observations_
ObsOperators< MODEL > ObsOperator_
ObsSpaces< MODEL > ObsSpace_
ModelAuxControl< MODEL > ModelAux_
ObsFilters< MODEL > ObsFilters_
Geometry< MODEL > Geometry_
int execute(const eckit::Configuration &fullConfig) const
Encapsulates the model state.
ObsAuxControl< MODEL > ObsAuxCtrl_
The namespace for the main oops code.
Handles writing-out of forecast fields.
subroutine, public info(self)
Encapsulates the nonlinear forecast model.
std::string appname() const
Computes observation equivalent during model run.
ObsEnsemble< MODEL > ObsEnsemble_
Control model post processing.
void enrollProcessor(PostBase_ *pp)
std::size_t size() const
Access.