OOPS
GetValuesL95.h
Go to the documentation of this file.
1
/*
2
* (C) Copyright 2019-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
#ifndef LORENZ95_GETVALUESL95_H_
9
#define LORENZ95_GETVALUESL95_H_
10
11
#include <ostream>
12
#include <string>
13
#include <vector>
14
15
#include "oops/util/DateTime.h"
16
#include "oops/util/ObjectCounter.h"
17
#include "oops/util/Printable.h"
18
19
namespace
lorenz95
{
20
class
GomL95;
21
class
LocsL95;
22
class
StateL95;
23
class
Resolution;
24
25
/// \brief used for getting state values at observation locations
26
/// (state at nearest gridpoint is used)
27
class
GetValuesL95
:
public
util::Printable,
28
private
util::ObjectCounter<GetValuesL95> {
29
public
:
30
static
const
std::string
classname
() {
return
"lorenz95::GetValuesL95"
;}
31
32
/// \brief computes indices resolidx_ of nearest gridpoints for all locations \p locs
33
GetValuesL95
(
const
Resolution
&,
const
LocsL95
& locs);
34
35
/// \brief fills in \p geovals for all observations in the timeframe (\p t1, \p t2],
36
/// \p geovals are equal to the value of \p state at the nearest gridpoint
37
void
fillGeoVaLs
(
const
StateL95
& state,
const
util::DateTime & t1,
38
const
util::DateTime & t2,
GomL95
& geovals)
const
;
39
40
private
:
41
void
print
(std::ostream &)
const
;
42
std::vector<int>
resolidx_
;
// indices in geometry for each of the locations
43
std::vector<util::DateTime>
times_
;
// times of all the observations
44
};
45
// -----------------------------------------------------------------------------
46
47
}
// namespace lorenz95
48
49
#endif // LORENZ95_GETVALUESL95_H_
lorenz95::GetValuesL95::resolidx_
std::vector< int > resolidx_
Definition:
GetValuesL95.h:42
lorenz95::GetValuesL95::classname
static const std::string classname()
Definition:
GetValuesL95.h:30
lorenz95::Resolution
Handles resolution.
Definition:
Resolution.h:42
lorenz95::StateL95
L95 model state.
Definition:
StateL95.h:53
lorenz95::GetValuesL95::print
void print(std::ostream &) const
Definition:
GetValuesL95.cc:51
lorenz95::LocsL95
LocsL95 class to handle locations for L95 model.
Definition:
LocsL95.h:32
lorenz95::GomL95
GomL95 class to handle locations for L95 model.
Definition:
GomL95.h:33
lorenz95::GetValuesL95::GetValuesL95
GetValuesL95(const Resolution &, const LocsL95 &locs)
computes indices resolidx_ of nearest gridpoints for all locations locs
Definition:
GetValuesL95.cc:25
lorenz95::GetValuesL95::times_
std::vector< util::DateTime > times_
Definition:
GetValuesL95.h:43
lorenz95::GetValuesL95
used for getting state values at observation locations (state at nearest gridpoint is used)
Definition:
GetValuesL95.h:28
lorenz95
The namespace for the L95 model.
Definition:
l95/src/lorenz95/AnalyticInit.cc:17
lorenz95::GetValuesL95::fillGeoVaLs
void fillGeoVaLs(const StateL95 &state, const util::DateTime &t1, const util::DateTime &t2, GomL95 &geovals) const
fills in geovals for all observations in the timeframe (t1, t2], geovals are equal to the value of st...
Definition:
GetValuesL95.cc:40
fv3-bundle
oops
l95
src
lorenz95
GetValuesL95.h
Generated on Sun Oct 25 2020 12:42:57 for OOPS by
1.8.18