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_shared_object.h"
5 #include "teca_dataset.h"
6 #include "teca_metadata.h"
7 #include "teca_index_reduce.h"
8 
9 #include <string>
10 #include <vector>
11 
12 TECA_SHARED_OBJECT_FORWARD_DECL(teca_table_reduce)
13 
14 /// A reduction on tabular data over time steps.
15 /**
16  * Tabular data from each time step is collected and
17  * concatenated into a big table.
18  */
20 {
21 public:
22  TECA_ALGORITHM_STATIC_NEW(teca_table_reduce)
23  TECA_ALGORITHM_DELETE_COPY_ASSIGN(teca_table_reduce)
24  TECA_ALGORITHM_CLASS_NAME(teca_table_reduce)
26 
27 protected:
29 
30  // overrides
31  p_teca_dataset reduce(const const_p_teca_dataset &left,
32  const const_p_teca_dataset &right) override;
33 
34  std::vector<teca_metadata> initialize_upstream_request(
35  unsigned int port, const std::vector<teca_metadata> &input_md,
36  const teca_metadata &request) override;
37 
38  teca_metadata initialize_output_metadata(unsigned int port,
39  const std::vector<teca_metadata> &input_md) override;
40 };
41 
42 #endif
teca_metadata
A generic container for meta data in the form of name=value pairs.
Definition: teca_metadata.h:18
teca_table_reduce
A reduction on tabular data over time steps.
Definition: teca_table_reduce.h:19
teca_shared_object.h
teca_geometry::left
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:17
teca_index_reduce
Base class for MPI + threads map reduce reduction over an index.
Definition: teca_index_reduce.h:38