1 #ifndef teca_cartesian_mesh_regrid_h
2 #define teca_cartesian_mesh_regrid_h
4 #include "teca_config.h"
6 #include "teca_algorithm.h"
7 #include "teca_metadata.h"
41 TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
42 TECA_SET_ALGORITHM_PROPERTIES()
48 TECA_ALGORITHM_VECTOR_PROPERTY(std::
string, array)
55 TECA_ALGORITHM_PROPERTY(
int, target_input)
64 enum {nearest=0, linear=1};
65 TECA_ALGORITHM_PROPERTY(
int, interpolation_mode)
66 void set_interpolation_mode_nearest(){ interpolation_mode = nearest; }
67 void set_interpolation_mode_linear(){ interpolation_mode = linear; }
79 const std::vector<teca_metadata> &input_md)
override;
81 std::vector<teca_metadata> get_upstream_request(
82 unsigned int port,
const std::vector<teca_metadata> &input_md,
85 const_p_teca_dataset execute(
unsigned int port,
86 const std::vector<const_p_teca_dataset> &input_data,
90 std::vector<std::string> arrays;
92 int interpolation_mode;