1 #ifndef teca_cartesian_mesh_subset_h
2 #define teca_cartesian_mesh_subset_h
5 #include "teca_algorithm.h"
6 #include "teca_metadata.h"
34 TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
35 TECA_SET_ALGORITHM_PROPERTIES()
42 TECA_ALGORITHM_PROPERTY(std::vector<
double>, bounds)
44 void set_bounds(
double low_x,
double high_x,
45 double low_y,
double high_y,
double low_z,
double high_z)
46 { this->set_bounds({low_x, high_x, low_y, high_y, low_z, high_z}); }
55 TECA_ALGORITHM_PROPERTY(
bool, cover_bounds)
66 const std::vector<teca_metadata> &input_md)
override;
68 std::vector<teca_metadata> get_upstream_request(
70 const std::vector<teca_metadata> &input_md,
73 const_p_teca_dataset execute(
75 const std::vector<const_p_teca_dataset> &input_data,
79 std::vector<double> bounds;
83 std::vector<unsigned long> extent;
The interface to TECA pipeline architecture.
Definition: teca_algorithm.h:244
virtual teca_metadata get_output_metadata(unsigned int port, const std::vector< teca_metadata > &input_md)
applies a subset given in world coordinates to the upstream request
Definition: teca_cartesian_mesh_subset.h:25
p_teca_error_handler error_handler TECA_EXPORT
The global error handler instance.