32#ifndef PseudoRhiOP_OP_H_
33#define PseudoRhiOP_OP_H_
38#include "data/DataSelector.h"
39#include "data/PolarODIM.h"
40#include "data/VerticalODIM.h"
41#include "product/VolumeOp.h"
55 PseudoRhiOp(
double az_angle=0.0,
long int xsize=500,
long int ysize=250,
double minRange=1.0,
double range=250.0,
56 double minHeight=0,
double maxHeight=10000,
double beamWidth = 0.25,
double beamPowerThreshold = 0.01) :
57 VolumeOp<RhiODIM>(
"PseudoRhiOp",
"Computes vertical intersection in a volume in the beam direction.") {
60 odim.product =
"PRHI";
62 parameters.link(
"az_angle",
odim.az_angle = az_angle,
"deg");
63 parameters.link(
"xsize",
odim.area.width = xsize,
"pix");
64 parameters.link(
"ysize",
odim.area.height = ysize,
"pix");
66 odim.range.set(minRange, range);
67 parameters.link(
"range",
odim.range.tuple(),
"km");
69 odim.altitudeRange.set(minHeight, maxHeight);
70 parameters.link(
"height",
odim.altitudeRange.tuple(),
"m" );
80 parameters.link(
"beamWidth", this->beamWidth = beamWidth,
"deg");
81 parameters.link(
"beamPowerThreshold", this->weightThreshold = beamPowerThreshold,
"0..1");
102 double weightThreshold;
121 return beamWidth2 / (beamWidth2 + angle*angle);
void setQuantities(const std::string &s)
Sets basic quantities and quality quantities. These sets are separated by '/'.
Definition DataSelector.cpp:282
A map of radar data, indexed by quantity code (DBZH, VRAD, etc).
Definition Data.h:1215
Essential class for storing radar data.
Definition Data.h:300
Metadata structure for single-radar data (polar scans, volumes and products).
Definition PolarODIM.h:45
drain::ReferenceMap allowedEncoding
Defines which encoding parameters can be changed by the user from command line.
Definition ProductBase.h:205
Pseudo Range-Height indicator.
Definition PseudoRhiOp.h:51
virtual void computeSingleProduct(const DataSetMap< PolarSrc > &src, DataSet< RhiDst > &dstProduct) const
Implements VolumeOp::filter.
Definition PseudoRhiOp.cpp:77
static double relativeBeamPower(double angle, double beamWidth2)
Definition PseudoRhiOp.h:120
MD odim
The default data parameters for encoding output (the product).
Definition RadarProductOp.h:101
Base class for radar data processors.
Definition VolumeOp.h:88
Namespace for images and image processing tools.
Definition AccumulationArray.cpp:45
Definition DataSelector.cpp:44