36#include "radar/RadarWindows.h"
38#include "PolarProductOp.h"
50 double & reflectivity;
53 Measurement(
double reflectivity=NAN,
double height=0.0) : reflectivity(this->next()), height(this->next()){
54 this->set(reflectivity, height);
66 const Data<src_t> * dataPtr = nullptr;
75 double reflectivity = NAN;
78 // double quality = 0.0;
92 T & interpolation_dry;
94 T & extrapolation_down;
98 MethodWeights() :
interpolation(this->next()), interpolation_dry(this->next()), extrapolation_up(this->next()), extrapolation_down(this->next()), clear(this->next()){
101 template<
typename ... TT>
102 MethodWeights(
const TT &... args) :
interpolation(this->next()), interpolation_dry(this->next()), extrapolation_up(this->next()), extrapolation_down(this->next()), clear(this->next()){
106 MethodWeights(
const MethodWeights & p):
drain::
UniTuple<double,5>(p),
107 interpolation(this->next()), interpolation_dry(this->next()), extrapolation_up(this->next()), extrapolation_down(this->next()), clear(this->next()) {
148 return (m1.height - m2.height) / (m1.reflectivity - m2.reflectivity);
162 double threshold = 0.0;
180 bool EXTENDED_OUTPUT =
true;
Tuple of N elements of type T.
Definition UniTuple.h:65
A map of radar data, indexed by quantity code (DBZH, VRAD, etc).
Definition Data.h:1215
Definition EchoTopOp.h:126
double undetectReflectivity
Unless NaN, use the value like a measured dBZ.
Definition EchoTopOp.h:165
double weightDecay
Span for linear decay of weights towards zero.
Definition EchoTopOp.h:174
void computeSingleProduct(const DataSetMap< src_t > &srcSweeps, DataSet< dst_t > &dstProduct) const override
Traverse the data applicable for this product and create new, processed data (volume or polar product...
Definition EchoTopOp.cpp:372
RadarWindowGeom avgWindow
Optional smoothin window. Width (metres) and height (degrees) (also used for reference)
Definition EchoTopOp.h:177
static double getSlope(const Measurement &m1, const Measurement &m2)
Definition EchoTopOp.h:147
Measurement reference
Virtual measurement high aloft, towards which reflectivity is expected to decrease.
Definition EchoTopOp.h:168
MethodWeights< double > weights
Quality weights for interpolative, dry-interpolative, max-limited, min-limited.
Definition EchoTopOp.h:171
Base class for flat (2D) products computed in the polar coordinate system. Volume is used as input.
Definition PolarProductOp.h:59
Like pixel window, but width is metres and height is degrees.
Definition RadarWindows.h:65
Namespace for images and image processing tools.
Definition AccumulationArray.cpp:45
Definition DataSelector.cpp:1277
Definition DataSelector.cpp:44
A single measurement (bin), with height coordinate and measurement value (reflectivity).
Definition EchoTopOp.h:48
Definition EchoTopOp.h:86
T & interpolation
Highest to lowest certainty.
Definition EchoTopOp.h:91