1 #ifndef teca_evaluate_expression_h
2 #define teca_evaluate_expression_h
5 #include "teca_algorithm.h"
6 #include "teca_metadata.h"
41 TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
42 TECA_SET_ALGORITHM_PROPERTIES()
49 void set_expression(const std::
string &expr);
52 std::
string get_expression()
53 {
return this->expression; }
60 TECA_ALGORITHM_PROPERTY(std::string, result_variable)
68 TECA_ALGORITHM_PROPERTY(
int, remove_dependent_variables)
81 unsigned int port, const std::vector<
teca_metadata> &input_md,
84 const_p_teca_dataset execute(
unsigned int port,
85 const std::vector<const_p_teca_dataset> &input_data,
89 std::
string expression;
90 std::
string result_variable;
91 std::
string postfix_expression;
92 std::
set<std::
string> dependent_variables;
93 int remove_dependent_variables;