ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_Plotfile2DCatalog.H
Go to the documentation of this file.
1 /**
2  * \file ERF_Plotfile2DCatalog.H
3  */
4 #ifndef ERF_PLOTFILE2DCATALOG_H_
5 #define ERF_PLOTFILE2DCATALOG_H_
6 
7 #include <string>
8 
9 #include <AMReX_Vector.H>
10 
11 namespace plotfile2d
12 {
13 
14 enum class DiagnosticID
15 {
16  ZSurf,
17  LandMask,
18  MapFac,
19  LatM,
20  LonM,
21  UStar,
22  WStar,
23  TStar,
24  QStar,
25  Olen,
26  Pblh,
27  TSurf,
28  QSurf,
29  Z0,
30  U10m,
31  V10m,
32  UEast10m,
33  VNorth10m,
34  OLR,
40  SebTsfc,
41  SebQsfc,
42  SebHfx,
43  SebLh,
44  SebSwNet,
46  SebLwNet,
48  SebTDeep,
49  SebQDeep,
55  SebSnowSwe,
59  SensFlux,
60  LatenFlux,
61  SurfPres,
80  ShocUStar,
81  ShocOlen,
114 };
115 
117 {
118  Geometry,
119  SurfaceLayer,
120  Radiation,
121  SurfaceFlux,
122  PBL,
123  SurfaceState,
126  LandSurface,
127  NearSurface,
129 };
130 
131 enum class MissingPolicy
132 {
136 };
137 
139 {
141  const char* name;
142  const char* long_name;
143  const char* units;
146 };
147 
148 const amrex::Vector<DiagnosticDescriptor>& diagnostic_catalog ();
149 
150 amrex::Vector<std::string> diagnostic_names ();
151 
152 const DiagnosticDescriptor* find_diagnostic (const std::string& name);
153 
154 // Runtime Noah-MP soil descriptors use the provider's actual configured layer
155 // count. Their IDs are unique within the returned runtime inventory.
156 amrex::Vector<std::string> dynamic_soil_diagnostic_names (int nsoil);
157 amrex::Vector<std::string>
158 dynamic_soil_diagnostic_names (const amrex::Vector<std::string>& active_lsm_names);
159 const DiagnosticDescriptor* find_dynamic_soil_diagnostic (const std::string& name);
160 bool is_dynamic_soil_diagnostic_name (const std::string& name);
161 
162 } // namespace plotfile2d
163 
164 #endif
std::string name
Definition: ERF_Plotfile2DCatalog.cpp:139
Definition: ERF.H:125
amrex::Vector< std::string > diagnostic_names()
Definition: ERF_Plotfile2DCatalog.cpp:194
amrex::Vector< std::string > dynamic_soil_diagnostic_names(int nsoil)
Definition: ERF_Plotfile2DCatalog.cpp:219
bool is_dynamic_soil_diagnostic_name(const std::string &name)
Definition: ERF_Plotfile2DCatalog.cpp:259
DiagnosticID
Definition: ERF_Plotfile2DCatalog.H:15
DiagnosticCategory
Definition: ERF_Plotfile2DCatalog.H:117
const amrex::Vector< DiagnosticDescriptor > & diagnostic_catalog()
Definition: ERF_Plotfile2DCatalog.cpp:188
MissingPolicy
Definition: ERF_Plotfile2DCatalog.H:132
const DiagnosticDescriptor * find_dynamic_soil_diagnostic(const std::string &name)
Definition: ERF_Plotfile2DCatalog.cpp:250
const DiagnosticDescriptor * find_diagnostic(const std::string &name)
Definition: ERF_Plotfile2DCatalog.cpp:207
Definition: ERF_Plotfile2DCatalog.H:139
DiagnosticID id
Definition: ERF_Plotfile2DCatalog.H:140
MissingPolicy missing_policy
Definition: ERF_Plotfile2DCatalog.H:145
const char * name
Definition: ERF_Plotfile2DCatalog.H:141
const char * units
Definition: ERF_Plotfile2DCatalog.H:143
DiagnosticCategory category
Definition: ERF_Plotfile2DCatalog.H:144
const char * long_name
Definition: ERF_Plotfile2DCatalog.H:142