TECA
The Toolkit for Extreme Climate Analysis
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.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 /** @brief
15  * Gathers the time axis and metadata from a parallel read of a
16  * set of NetCDF CF2 files.
17  */
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
A generic container for meta data in the form of name=value pairs.
Definition: teca_metadata.h:18
teca_cf_time_axis_data_reduce
Gathers the time axis and metadata from a parallel read of a set of NetCDF CF2 files.
Definition: teca_cf_time_axis_data_reduce.h:18
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