UFO
Cal_Wind.h
Go to the documentation of this file.
1 /*
2  * (C) Crown copyright 2020, Met Office
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 UFO_VARIABLETRANSFORMS_CAL_WIND_H_
9 #define UFO_VARIABLETRANSFORMS_CAL_WIND_H_
10 
11 #include <memory>
12 #include <ostream>
13 #include <string>
14 #include <vector>
15 
16 #include "oops/util/ObjectCounter.h"
18 
19 namespace ufo {
20 
21 /*!
22 * \brief Wind Speed And Direction filter
23 *
24 * \details Performs a variable conversion from the wind components, eastward_wind and
25 * northward_wind, to wind_speed and wind_from_direction. The newly calculated variables
26 * are included in the same obs space. The filter does not have any configuration options.
27 ///
28 *
29 * See VariableTransformsParameters for filter setup.
30 */
32  public:
34  const ObsFilterData &data,
35  const std::shared_ptr<ioda::ObsDataVector<int>> &flags);
36  // Run variable conversion
37  void runTransform(const std::vector<bool> &apply) override;
38 };
39 
40 /*!
41 * \brief Retrieve wind components.
42 *
43 * \details Performs a variable conversion from wind_speed and wind_from_direction to
44 * the wind components, eastward_wind and northward_wind. The newly calculated variables
45 * are included in the same obs space.
46 *
47 * See VariableTransformsParameters for filter setup.
48 */
50  public:
52  const ObsFilterData &data,
53  const std::shared_ptr<ioda::ObsDataVector<int>> &flags);
54  // Run check
55  void runTransform(const std::vector<bool> &apply) override;
56 };
57 } // namespace ufo
58 
59 #endif // UFO_VARIABLETRANSFORMS_CAL_WIND_H_
Retrieve wind components.
Definition: Cal_Wind.h:49
void runTransform(const std::vector< bool > &apply) override
Run variable conversion.
Definition: Cal_Wind.cc:87
Cal_WindComponents(const VariableTransformsParameters &options, const ObsFilterData &data, const std::shared_ptr< ioda::ObsDataVector< int >> &flags)
Definition: Cal_Wind.cc:79
Wind Speed And Direction filter.
Definition: Cal_Wind.h:31
Cal_WindSpeedAndDirection(const VariableTransformsParameters &options, const ObsFilterData &data, const std::shared_ptr< ioda::ObsDataVector< int >> &flags)
Definition: Cal_Wind.cc:23
void runTransform(const std::vector< bool > &apply) override
Run variable conversion.
Definition: Cal_Wind.cc:31
ObsFilterData provides access to all data related to an ObsFilter.
Base class for variable conversion.
Definition: TransformBase.h:53
Options controlling the operation of the variablestansform filter.
Definition: RunCRTM.h:27