MPAS-JEDI
GetValues.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2020 UCAR
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  */
7 
8 #pragma once
9 
10 #include <fstream>
11 #include <memory>
12 #include <ostream>
13 #include <string>
14 #include <vector>
15 
16 #include "eckit/exception/Exceptions.h"
17 
18 #include "oops/util/DateTime.h"
19 #include "oops/util/Logger.h"
20 #include "oops/util/ObjectCounter.h"
21 #include "oops/util/Printable.h"
22 #include "oops/util/Timer.h"
23 
24 #include "ufo/GeoVaLs.h"
25 #include "ufo/Locations.h"
26 
28 
29 // -------------------------------------------------------------------------------------------------
30 
31 namespace eckit {
32  class Configuration;
33 }
34 
35 namespace ufo {
36  class GeoVaLs;
37  class Locations;
38 }
39 
40 namespace mpas {
41  class GeometryMPAS;
42  class StateMPAS;
43  class VarChaModel2GeoVars;
44 
45 // -------------------------------------------------------------------------------------------------
46 
47 class GetValues : public util::Printable,
48  private util::ObjectCounter<GetValues> {
49  public:
50  static const std::string classname() {return "mpas::GetValues";}
51 
52  GetValues(const GeometryMPAS &, const ufo::Locations &,
53  const eckit::Configuration &);
54  virtual ~GetValues();
55 
56  void fillGeoVaLs(const StateMPAS &, const util::DateTime &,
57  const util::DateTime &, ufo::GeoVaLs &) const;
58 
59  private:
60  void print(std::ostream &) const;
62  ufo::Locations locs_;
63  std::shared_ptr<const GeometryMPAS> geom_;
64  std::unique_ptr<VarChaModel2GeoVars> model2geovars_;
65 };
66 
67 // -------------------------------------------------------------------------------------------------
68 
69 } // namespace mpas
70 
GeometryMPAS handles geometry for MPAS model.
Definition: GeometryMPAS.h:37
virtual ~GetValues()
Definition: GetValues.cc:39
std::unique_ptr< VarChaModel2GeoVars > model2geovars_
Definition: GetValues.h:64
void fillGeoVaLs(const StateMPAS &, const util::DateTime &, const util::DateTime &, ufo::GeoVaLs &) const
fill a GeoVaLs object using a StateMPAS object
Definition: GetValues.cc:60
std::shared_ptr< const GeometryMPAS > geom_
Definition: GetValues.h:63
F90getvalues keyGetValues_
Definition: GetValues.h:61
static const std::string classname()
Definition: GetValues.h:50
ufo::Locations locs_
Definition: GetValues.h:62
GetValues(const GeometryMPAS &, const ufo::Locations &, const eckit::Configuration &)
Definition: GetValues.cc:17
void print(std::ostream &) const
Definition: GetValues.cc:89
MPAS model state.
Definition: StateMPAS.h:51
Definition: Fortran.h:17
int F90getvalues
Definition: Fortran.h:56
Definition: GetValues.h:35