UFO
TrackCheckShipParameters.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2020 Met Office UK
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  */
7 
8 #ifndef UFO_FILTERS_TRACKCHECKSHIPPARAMETERS_H_
9 #define UFO_FILTERS_TRACKCHECKSHIPPARAMETERS_H_
10 
11 #include <string>
12 
13 #include "oops/util/Duration.h"
14 #include "oops/util/parameters/OptionalParameter.h"
15 #include "oops/util/parameters/Parameter.h"
16 #include "oops/util/parameters/Parameters.h"
17 #include "oops/util/parameters/ParameterTraits.h"
18 
20 
21 
22 
23 namespace ufo {
24 
25 /// \brief Options controlling the operation of the ship track check filter.
27  public:
28  /// Assumed temporal resolution of the observations, i.e. absolute accuracy of the reported
29  /// observation times.
30  oops::Parameter<util::Duration> temporalResolution{
31  "temporal resolution", util::Duration("PT10M"), this
32  };
33 
34  /// Assumed spatial resolution of the observations (in km), i.e. absolute accuracy of the
35  /// reported positions.
36  ///
37  /// Instantaneous speeds are estimated conservatively with the formula
38  ///
39  /// speed_estimate = (reported_distance - spatial resolution) /
40  /// (reported_time + temporal resolution).
41  oops::Parameter<double> spatialResolution {
42  "spatial resolution", 1.0, this
43  };
44 
45  /// Maximum speed (before marking as fast) in km/s
46  oops::Parameter<double> maxSpeed {
47  "max speed", 1.0, this
48  };
49 
50  /// The start of an observation window where trace output should be produced. If blank,
51  /// the start of the track will be treated as the start of this window.
52  oops::OptionalParameter<float> debugWindowStart {
53  "debug window start", this
54  };
55 
56  /// The end of an observation window where trace output should be produced. If blank,
57  /// the end of the track will be treated as the end of this window.
58  oops::OptionalParameter<float> debugWindowEnd {
59  "debug window end", this
60  };
61 
62  /// The type of input source. This affects the treatment of tracks
63  /// with large numbers of simultaneous observations.
64  oops::Parameter<int> inputCategory {
65  "input category", 2, this // 1 for buoy/other fixed input; 2 for ship; 3 for ship_auto
66  };
67 
68  /// \brief If \p deferredCheckSimultaneous set to true, check of simultaneous
69  /// observations will be deferred until the end, at which point flagged observations
70  /// may be reinstated.
71  oops::Parameter<bool> deferredCheckSimultaneous {
72  "deferred check simultaneous", false, this
73  };
74 
75  /// \brief If \p earlyBreakCheck set to true, check will stop early based on the number
76  /// of short-spaced, fast, and bended segments of the track
77  oops::Parameter<bool> earlyBreakCheck {
78  "early break check", true, this
79  };
80 
81  /// \brief To be set to \p true if the filter's unit tests are being run
82  oops::Parameter<bool> testingMode {
83  "testing mode", false, this
84  };
85 };
86 
87 } // namespace ufo
88 
89 #endif // UFO_FILTERS_TRACKCHECKSHIPPARAMETERS_H_
ufo::TrackCheckShipParameters::earlyBreakCheck
oops::Parameter< bool > earlyBreakCheck
If earlyBreakCheck set to true, check will stop early based on the number of short-spaced,...
Definition: TrackCheckShipParameters.h:77
ufo::TrackCheckShipParameters::debugWindowStart
oops::OptionalParameter< float > debugWindowStart
Definition: TrackCheckShipParameters.h:52
ufo
Definition: RunCRTM.h:27
ufo::TrackCheckShipParameters::inputCategory
oops::Parameter< int > inputCategory
Definition: TrackCheckShipParameters.h:64
ufo::TrackCheckUtilsParameters
Options controlling the operation of the track check filter.
Definition: TrackCheckUtilsParameters.h:22
TrackCheckUtilsParameters.h
ufo::TrackCheckShipParameters::deferredCheckSimultaneous
oops::Parameter< bool > deferredCheckSimultaneous
If deferredCheckSimultaneous set to true, check of simultaneous observations will be deferred until t...
Definition: TrackCheckShipParameters.h:71
ufo::TrackCheckShipParameters::temporalResolution
oops::Parameter< util::Duration > temporalResolution
Definition: TrackCheckShipParameters.h:30
ufo::TrackCheckShipParameters::testingMode
oops::Parameter< bool > testingMode
To be set to true if the filter's unit tests are being run.
Definition: TrackCheckShipParameters.h:82
ufo::TrackCheckShipParameters
Options controlling the operation of the ship track check filter.
Definition: TrackCheckShipParameters.h:26
ufo::TrackCheckShipParameters::debugWindowEnd
oops::OptionalParameter< float > debugWindowEnd
Definition: TrackCheckShipParameters.h:58
ufo::TrackCheckShipParameters::spatialResolution
oops::Parameter< double > spatialResolution
Definition: TrackCheckShipParameters.h:41
ufo::TrackCheckShipParameters::maxSpeed
oops::Parameter< double > maxSpeed
Maximum speed (before marking as fast) in km/s.
Definition: TrackCheckShipParameters.h:46