IODA Bundle
Transforms/OffsetTransform.cpp
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 #include "OffsetTransform.h"
9 
10 
11 namespace Ingester
12 {
13  OffsetTransform::OffsetTransform(const double offset) :
14  offset_(offset)
15  {
16  }
17 
19  {
20  array = array + offset_;
21  }
22 
23 } // namespace Ingester
void apply(IngesterArray &array) override
Apply transform to the given data.
Eigen::Array< FloatType, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > IngesterArray
Definition: IngesterTypes.h:19