TECA
The Toolkit for Extreme Climate Analysis
teca_table_reduce.h
1 #ifndef teca_table_reduce_h
2 #define teca_table_reduce_h
3 
4 #include "teca_config.h"
5 #include "teca_shared_object.h"
6 #include "teca_dataset.h"
7 #include "teca_metadata.h"
8 #include "teca_index_reduce.h"
9 
10 #include <string>
11 #include <vector>
12 
13 TECA_SHARED_OBJECT_FORWARD_DECL(teca_table_reduce)
14 
15 /// A reduction on tabular data over time steps.
16 /** Tabular data from the inputs is concatenated by row into a single table.
17  * Threading results in out of order execution and generation of the inputs. It
18  * may be necessary to sort the data to regain order of the requests. See
19  * teca_table_sort.
20  */
22 {
23 public:
24  TECA_ALGORITHM_STATIC_NEW(teca_table_reduce)
25  TECA_ALGORITHM_DELETE_COPY_ASSIGN(teca_table_reduce)
26  TECA_ALGORITHM_CLASS_NAME(teca_table_reduce)
28 
29 protected:
31 
32  // overrides
33  p_teca_dataset reduce(int device_id, const const_p_teca_dataset &left,
34  const const_p_teca_dataset &right) override;
35 };
36 
37 #endif
Base class for MPI+threads+GPUs map reduce reduction over a set of indices.
Definition: teca_index_reduce.h:51
A reduction on tabular data over time steps.
Definition: teca_table_reduce.h:22
p_teca_dataset reduce(int device_id, const const_p_teca_dataset &left, const const_p_teca_dataset &right) override
p_teca_error_handler error_handler TECA_EXPORT
The global error handler instance.
TECA_EXPORT bool left(n_t e0x, n_t e0y, n_t e1x, n_t e1y, n_t px, n_t py)
tests if a point is Left|On|Right of an infinite line.
Definition: teca_geometry.h:29