TECA
teca_cf_time_axis_data_reduce.h
1 #ifndef teca_cf_time_axis_data_reduce_h
2 #define teca_cf_time_axis_data_reduce_h
3 
4 #include "teca_shared_object.h"
5 #include "teca_dataset_fwd.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_cf_time_axis_data_reduce)
13 
14 
19 {
20 public:
21  TECA_ALGORITHM_STATIC_NEW(teca_cf_time_axis_data_reduce)
22  TECA_ALGORITHM_DELETE_COPY_ASSIGN(teca_cf_time_axis_data_reduce)
23  TECA_ALGORITHM_CLASS_NAME(teca_cf_time_axis_data_reduce)
24  ~teca_cf_time_axis_data_reduce() override = default;
25 
26 protected:
28 
29  // overrides
30  p_teca_dataset reduce(const const_p_teca_dataset &left,
31  const const_p_teca_dataset &right) override;
32 
33  std::vector<teca_metadata> initialize_upstream_request(
34  unsigned int port, const std::vector<teca_metadata> &input_md,
35  const teca_metadata &request) override;
36 
37  teca_metadata initialize_output_metadata(unsigned int port,
38  const std::vector<teca_metadata> &input_md) override;
39 };
40 
41 #endif
teca_metadata
Definition: teca_metadata.h:17
teca_cf_time_axis_data_reduce
Definition: teca_cf_time_axis_data_reduce.h:19
teca_index_reduce
Definition: teca_index_reduce.h:37