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 /**
17  * Tabular data from each time step is collected and
18  * concatenated into a big table.
19  */
21 {
22 public:
23  TECA_ALGORITHM_STATIC_NEW(teca_table_reduce)
24  TECA_ALGORITHM_DELETE_COPY_ASSIGN(teca_table_reduce)
25  TECA_ALGORITHM_CLASS_NAME(teca_table_reduce)
27 
28 protected:
30 
31  // overrides
32  p_teca_dataset reduce(int device_id, const const_p_teca_dataset &left,
33  const const_p_teca_dataset &right) override;
34 
35  std::vector<teca_metadata> initialize_upstream_request(
36  unsigned int port, const std::vector<teca_metadata> &input_md,
37  const teca_metadata &request) override;
38 
39  teca_metadata initialize_output_metadata(unsigned int port,
40  const std::vector<teca_metadata> &input_md) override;
41 };
42 
43 #endif
teca_metadata
A generic container for meta data in the form of name=value pairs.
Definition: teca_metadata.h:21
teca_table_reduce
A reduction on tabular data over time steps.
Definition: teca_table_reduce.h:20
teca_shared_object.h
teca_geometry::left
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:19
teca_error::TECA_EXPORT
p_teca_error_handler error_handler TECA_EXPORT
The global error handler instance.
teca_index_reduce
Base class for MPI+threads+GPUs map reduce reduction over a set of indices.
Definition: teca_index_reduce.h:34