TECA
teca_tc_trajectory.h
1 #ifndef teca_tc_trajectory_h
2 #define teca_tc_trajectory_h
3 
4 #include "teca_shared_object.h"
5 #include "teca_algorithm.h"
6 #include "teca_metadata.h"
7 
8 #include <string>
9 #include <vector>
10 
11 TECA_SHARED_OBJECT_FORWARD_DECL(teca_tc_trajectory)
12 
13 
37 {
38 public:
39  TECA_ALGORITHM_STATIC_NEW(teca_tc_trajectory)
40  TECA_ALGORITHM_DELETE_COPY_ASSIGN(teca_tc_trajectory)
41  TECA_ALGORITHM_CLASS_NAME(teca_tc_trajectory)
43 
44  // report/initialize to/from Boost program options
45  // objects.
46  TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
47  TECA_SET_ALGORITHM_PROPERTIES()
48 
49  // set the arrays that contain the vector components
50  // to compute norm from
51  TECA_ALGORITHM_PROPERTY(double, max_daily_distance)
52  TECA_ALGORITHM_PROPERTY(double, min_wind_speed)
53  TECA_ALGORITHM_PROPERTY(double, min_wind_duration)
54 
55  // number of time steps between candidate data
56  // this is used to detect missing candidate data
57  // and abort those tracks. default 1
58  TECA_ALGORITHM_PROPERTY(unsigned long, step_interval)
59 
60 protected:
62 
63 private:
64  teca_metadata get_output_metadata(
65  unsigned int port,
66  const std::vector<teca_metadata> &input_md) override;
67 
68  std::vector<teca_metadata> get_upstream_request(
69  unsigned int port,
70  const std::vector<teca_metadata> &input_md,
71  const teca_metadata &request) override;
72 
73  const_p_teca_dataset execute(
74  unsigned int port,
75  const std::vector<const_p_teca_dataset> &input_data,
76  const teca_metadata &request) override;
77 
78 private:
79  double max_daily_distance;
80  double min_wind_speed;
81  double min_wind_duration;
82  unsigned long step_interval;
83 };
84 
85 #endif
teca_metadata
Definition: teca_metadata.h:17
teca_tc_trajectory
GFDL tropical storms trajectory tracking algorithm.
Definition: teca_tc_trajectory.h:37
teca_algorithm
Definition: teca_algorithm.h:25