1 #ifndef teca_cartesian_mesh_regrid_h
2 #define teca_cartesian_mesh_regrid_h
5 #include "teca_algorithm.h"
6 #include "teca_metadata.h"
40 TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
41 TECA_SET_ALGORITHM_PROPERTIES()
47 TECA_ALGORITHM_VECTOR_PROPERTY(std::
string, array)
54 TECA_ALGORITHM_PROPERTY(
int, target_input)
63 enum {nearest=0, linear=1};
64 TECA_ALGORITHM_PROPERTY(
int, interpolation_mode)
65 void set_interpolation_mode_nearest(){ interpolation_mode = nearest; }
66 void set_interpolation_mode_linear(){ interpolation_mode = linear; }
76 const std::vector<teca_metadata> &input_md)
override;
78 std::vector<teca_metadata> get_upstream_request(
79 unsigned int port,
const std::vector<teca_metadata> &input_md,
82 const_p_teca_dataset execute(
unsigned int port,
83 const std::vector<const_p_teca_dataset> &input_data,
87 std::vector<std::string> arrays;
89 int interpolation_mode;