1 #ifndef teca_bayesian_ar_detect_h
2 #define teca_bayesian_ar_detect_h
4 #include "teca_shared_object.h"
5 #include "teca_algorithm.h"
6 #include "teca_metadata.h"
49 TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
50 TECA_SET_ALGORITHM_PROPERTIES()
53 TECA_ALGORITHM_PROPERTY(std::string, ivt_variable)
56 TECA_ALGORITHM_PROPERTY(std::string, min_ivt_variable)
57 TECA_ALGORITHM_PROPERTY(std::string, min_component_area_variable)
58 TECA_ALGORITHM_PROPERTY(std::string, hwhm_latitude_variable)
62 TECA_ALGORITHM_PROPERTY(
int, verbose)
67 void set_thread_pool_size(
int n_threads);
68 unsigned int get_thread_pool_size()
const noexcept;
74 void set_input_connection(
unsigned int id,
75 const teca_algorithm_output_port &port)
override;
84 const std::vector<teca_metadata> &input_md)
override;
86 std::vector<teca_metadata> get_upstream_request(
87 unsigned int port,
const std::vector<teca_metadata> &input_md,
90 const_p_teca_dataset execute(
unsigned int port,
91 const std::vector<const_p_teca_dataset> &input_data,
94 void set_modified()
override;
97 std::string ivt_variable;
98 std::string min_component_area_variable;
99 std::string min_ivt_variable;
100 std::string hwhm_latitude_variable;
101 int thread_pool_size;