IODA Bundle
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 Multiply a floating point scaling factor to to the data.
16
class
ScalingTransform
:
public
Transform
17
{
18
public
:
19
explicit
ScalingTransform
(
const
double
scaling_
);
20
~ScalingTransform
() =
default
;
21
22
/// \brief Apply transform to the given data.
23
void
apply
(
IngesterArray
& array)
override
;
24
25
private
:
26
const
double
scaling_
;
27
};
28
}
// namespace Ingester
Transform.h
Ingester::ScalingTransform
Multiply a floating point scaling factor to to the data.
Definition:
Transforms/ScalingTransform.h:17
Ingester::ScalingTransform::~ScalingTransform
~ScalingTransform()=default
Ingester::ScalingTransform::apply
void apply(IngesterArray &array) override
Apply transform to the given data.
Definition:
Transforms/ScalingTransform.cpp:18
Ingester::ScalingTransform::scaling_
const double scaling_
Definition:
Transforms/ScalingTransform.h:26
Ingester::ScalingTransform::ScalingTransform
ScalingTransform(const double scaling_)
Definition:
Transforms/ScalingTransform.cpp:13
Ingester::Transform
Base class for Transforms which are used to transform data. Transforms are useful for getting data in...
Definition:
Transforms/Transform.h:20
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
Transforms
ScalingTransform.h
Generated on Fri Aug 20 2021 11:49:10 for IODA Bundle by
1.9.1