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)
64 const std::vector<teca_metadata> &input_md)
override;
66 std::vector<teca_metadata> get_upstream_request(
68 const std::vector<teca_metadata> &input_md,
71 const_p_teca_dataset execute(
73 const std::vector<const_p_teca_dataset> &input_data,
77 std::vector<double> bounds;
81 std::vector<unsigned long> extent;