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
*/
19
class
TECA_EXPORT
teca_cf_time_axis_data_reduce
: public
teca_index_reduce
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:
28
teca_cf_time_axis_data_reduce
();
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
teca_metadata
A generic container for meta data in the form of name=value pairs.
Definition:
teca_metadata.h:21
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:19
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
stable
io
teca_cf_time_axis_data_reduce.h
Generated on Wed Jun 22 2022 00:00:21 for TECA by
1.8.17