35 #include "PolarProductOp.h"
38 #include "radar/PolarSector.h"
69 double project(
double azmR,
double u,
double v) {
71 return u*sin(azmR) + v*cos(azmR);
78 double alias(
double v,
double vNyq) {
79 return v - (2.0*vNyq)*floor((vNyq + v)/(2.0*vNyq));
87 DopplerOp(
const std::string & name,
const std::string &description) : PolarProductOp(name, description){
89 dataSelector.setQuantities(
"^VRADH?$");
90 dataSelector.setMaxCount(1);
114 parameters.link(
"dMax", this->dMax = dMax,
"m/s");
116 dataSelector.setQuantities(
"VRAD.*");
118 dataSelector.setMaxCount(1);
121 odim.quantity =
"VRAD_DIFF";
131 void processData(
const Data<PolarSrc> & vradSrc, Data<PolarDst> & dstData)
const;
146 parameters.link(
"nyquist", odim.NI = 100.0,
"max-unamb-velocity");
147 parameters.link(
"match", matchOriginal=0,
"flag(aliased=1,nodata=2)");
148 parameters.link(
"quantity", odim.quantity =
"VRAD",
"output-quantity");
150 dataSelector.setMaxCount(1);
151 dataSelector.setQuantities(
"^(AMVU|AMVV|VRAD)$");
176 parameters.link(
"nyquist", odim.NI = 100.0,
"max-unamb-velocity");
177 parameters.link(
"threshold", relative_NI_threshold=0.9,
"relative speed");
180 dataSelector.setMaxCount(1);
181 dataSelector.setQuantities(
"^VRAD");
183 odim.quantity =
"VRAD";
190 double relative_NI_threshold;
A map of radar data, indexed by quantity code (DBZH, VRAD, etc).
Definition: Data.h:1213
Data structure consisting of plain data and an optional quality data.
Definition: Data.h:1144
Definition: DopplerOp.h:170
Experimental.
Definition: DopplerOp.h:104
DopplerDiffOp(double dMaz=100.0)
Constructor.
Definition: DopplerOp.h:112
Base class for computing products using Doppler speed [VRAD] data.
Definition: DopplerOp.h:49
static double project(double azmR, double u, double v)
Projects wind (u,v) to beam direction (rad). Unit (typically m/s) is preserved.
Definition: DopplerOp.h:69
Definition: DopplerOp.h:140
virtual void processDataSet(const DataSet< PolarSrc > &srcSweep, DataSet< PolarDst > &dstProduct) const
Definition: DopplerOp.cpp:117
Base class for flat (2D) products computed in the polar coordinate system. Volume is used as input.
Definition: PolarProductOp.h:61
Definition: DataSelector.cpp:44