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_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_cf_time_axis_data_reduce)
14 
15 /** @brief
16  * Gathers the time axis and metadata from a parallel read of a
17  * set of NetCDF CF2 files.
18  */
20 {
21 public:
22  TECA_ALGORITHM_STATIC_NEW(teca_cf_time_axis_data_reduce)
23  TECA_ALGORITHM_DELETE_COPY_ASSIGN(teca_cf_time_axis_data_reduce)
24  TECA_ALGORITHM_CLASS_NAME(teca_cf_time_axis_data_reduce)
25  ~teca_cf_time_axis_data_reduce() override = default;
26 
27 protected:
29 
30  // overrides
31  p_teca_dataset reduce(int device_id, 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
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:20
Base class for MPI+threads+GPUs map reduce reduction over a set of indices.
Definition: teca_index_reduce.h:51
A generic container for meta data in the form of name=value pairs.
Definition: teca_metadata.h:22
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