source: XIOS/trunk/src/transformation/Functions/extract.hpp @ 1076

Last change on this file since 1076 was 1076, checked in by mhnguyen, 7 years ago

Correcting behavior of detecting_missing_value:

  • Missing value detection is activated only when detecting_missing_value = true

and a default_value is defined.

  • By default, undefined value by the computation of vertical (horizontal) interpolation will be NaN (not a number).

They are only converted to default_value if missing value detection is activated

Test

  • On Curie
  • Work
File size: 916 bytes
Line 
1/*!
2   \file extract.hpp
3   \author Ha NGUYEN
4   \since 27 June 2016
5   \date 27 June 2016
6
7   \brief Min reduction
8 */
9#ifndef __XIOS_REDUCTION_EXTRACT_ALGORITHM_HPP__
10#define __XIOS_REDUCTION_EXTRACT_ALGORITHM_HPP__
11
12#include "reduction.hpp"
13
14namespace xios {
15
16/*!
17  \class CExtractReductionAlgorithm
18  Interface for all reduction alogrithms.
19*/
20class CExtractReductionAlgorithm : public CReductionAlgorithm
21{
22public:
23  CExtractReductionAlgorithm();
24
25  virtual void apply(const std::vector<std::pair<int,double> >& localIndex,
26                     const double* dataInput,
27                     CArray<double,1>& dataOut,
28                     std::vector<bool>& flagInitial,
29                     bool ignoreMissingValue);
30
31  virtual ~CExtractReductionAlgorithm() {}
32
33public:
34  static bool registerTrans();
35
36protected:
37  static CReductionAlgorithm* create();
38};
39
40}
41#endif // __XIOS_REDUCTION_EXTRACT_ALGORITHM_HPP__
Note: See TracBrowser for help on using the repository browser.