Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
RadarAccumulator< AC, OD > Class Template Reference

Data array for creating composites and accumulated polar products (Surface rain fall or cluttermaps) More...

#include <RadarAccumulator.h>

Inheritance diagram for RadarAccumulator< AC, OD >:
Inheritance graph
[legend]
Collaboration diagram for RadarAccumulator< AC, OD >:
Collaboration graph
[legend]

Public Types

typedef PlainData< SrcType< OD const > > pdata_src_t
 Input data type.
 
typedef PlainData< DstType< OD > > pdata_dst_t
 

Public Member Functions

 RadarAccumulator ()
 Default constructor.
 
void addData (const pdata_src_t &srcData, const pdata_src_t &srcQuality, double weight, int i0, int j0)
 Adds data that is in the same coordinate system as the accumulator. Weighted with quality.
 
void addData (const pdata_src_t &srcData, const pdata_src_t &srcQuality, const pdata_src_t &srcCount)
 Adds data that is in the same coordinate system as the accumulator.
 
void extractOLD (const OD &odimOut, DataSet< DstType< OD > > &dstProduct, const std::string &fields, const drain::Rectangle< int > &crop={0, 0, 0, 0}) const
 
void setTargetEncoding (const std::string &encoding)
 Not critical. If set, needed to warn if input data does not match the expected / potential targetEncoding.
 
void consumeTargetEncoding (std::string &encoding)
 
const std::string & getTargetEncoding ()
 
virtual std::ostream & toStream (std::ostream &ostr) const
 
bool checkCompositingMethod (const ODIM &srcODIM) const
 Warns if data scaling involves risks in using WAVG (weighted averaging)
 

Public Attributes

DataSelector dataSelector
 Input data selector.
 
OD odim
 For storing the scaling and encoding of (1st) input or user-defined values. Also for bookkeeping of date, time, sources etc.
 
double defaultQuality
 If source data has no quality field, this value is applied for (detected) data.
 
size_t counter
 Book-keeping for new data. Finally, in extraction phase, added to odim.ACCnum . More...
 

Protected Attributes

std::string targetEncoding
 

Detailed Description

template<class AC, class OD>
class rack::RadarAccumulator< AC, OD >

Data array for creating composites and accumulated polar products (Surface rain fall or cluttermaps)

Template Parameters
AC- accumulator type (plain drain::image::Accumulator or drain::image::AccumulatorGeo)
OD- odim type (PolarODIM or CartesianODIM) metadata container

Member Function Documentation

◆ extractOLD()

void extractOLD ( const OD &  odimOut,
DataSet< DstType< OD > > &  dstProduct,
const std::string &  fields,
const drain::Rectangle< int > &  crop = {0,0,0,0} 
) const
Parameters
odimOut- metadata container (PolarODIM or CartesianODIM)
fields- layers (d=data, w=weight, C=count, ...)

Determines if quality is stored in /dataset1/quality1/ or /dataset1/data1/quality1/

Member Data Documentation

◆ counter

size_t counter

Book-keeping for new data. Finally, in extraction phase, added to odim.ACCnum .

Must be kept separate during accumulation. The accumulation array channel count keeps track of bin hits.


The documentation for this class was generated from the following file: