IODA Bundle
Variables/Transforms/ScalingTransform.h
Go to the documentation of this file.
1
/*
2
* (C) Copyright 2020 NOAA/NWS/NCEP/EMC
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 "
Transform.h
"
11
12
13
namespace
Ingester
14
{
15
/// \brief Transforms data by multiplying it by a scaling factor.
16
class
ScalingTransform :
public
Transform
17
{
18
public
:
19
/// \brief Constructor
20
/// \param scaling Value to multiply by.
21
explicit
ScalingTransform
(
const
double
scaling);
22
~ScalingTransform
() =
default
;
23
24
/// \brief Modify data according to the rules of the transform.
25
/// \param array Array of data to modify.
26
void
apply
(
IngesterArray
& array)
override
;
27
28
private
:
29
const
double
scaling_
;
30
};
31
}
// namespace Ingester
Transform.h
Ingester::ScalingTransform::ScalingTransform
ScalingTransform(const double scaling)
Constructor.
Ingester::ScalingTransform::~ScalingTransform
~ScalingTransform()=default
Ingester::ScalingTransform::apply
void apply(IngesterArray &array) override
Modify data according to the rules of the transform.
Ingester::ScalingTransform::scaling_
const double scaling_
Definition:
Transforms/ScalingTransform.h:26
Ingester
Definition:
bufr2ioda.cpp:28
Ingester::IngesterArray
Eigen::Array< FloatType, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > IngesterArray
Definition:
IngesterTypes.h:19
iodaconv
src
bufr
BufrParser
Exports
Variables
Transforms
ScalingTransform.h
Generated on Fri Aug 20 2021 11:49:10 for IODA Bundle by
1.9.1