Public Types | Public Member Functions | Public Attributes | List of all members
PlainData< DT > Class Template Reference

Essential class for storing radar data. More...

#include <Data.h>

Inheritance diagram for PlainData< DT >:
Inheritance graph
[legend]
Collaboration diagram for PlainData< DT >:
Collaboration graph
[legend]

Public Types

typedef DT::tree_t tree_t
 
typedef DT::image_t image_t
 
typedef DT::odim_t odim_t
 
- Public Types inherited from TreeWrapper< DT >
typedef DT datatype_t
 
typedef DT::tree_t tree_t
 
typedef DT::tree_iter_t tree_iter_t
 

Public Member Functions

 PlainData (typename DT::tree_t &tree)
 
 PlainData (typename DT::tree_t &tree, const std::string &quantity)
 Constructor referring to HDF5 structure.
 
template<typename DT2 >
 PlainData (const PlainData< DT2 > &d)
 Copy constructor, also for referencing non-const as const. More...
 
template<class T >
void setEncoding (const T &type, const std::string &values="")
 Saves type and sets the type of the actual data array as well.
 
void copyEncoding (const EncodingODIM &odim)
 New, experimental.
 
template<class DT2 >
void copyEncoding (const PlainData< DT2 > &srcData)
 
void setPhysicalRange (double min, double max)
 
void setGeometry (size_t cols, size_t rows)
 Sets dimensions of data array and metadata.
 
void setGeometry (const drain::image::AreaGeometry &geometry)
 Sets dimensions of data array and metadata.
 
void setGeometry (const odim_t &odim)
 Copy dimensions of data array and resolution (rscale or xscale,yscale) More...
 
template<class DT2 >
void copyGeometry (const PlainData< DT2 > &srcData)
 Copy dimensions of data array and resolution (rscale or xscale,yscale) More...
 
template<class T >
void initialize (const T &type, size_t cols, size_t rows)
 Calls setEncoding() and setGeometry().
 
template<class T >
void initialize (const T &type, const drain::image::AreaGeometry &geometry)
 
void createSimpleQualityData (drain::image::Image &qualityImage, double dataQuality=1.0, double undetectQuality=0.5, double nodataQuality=0.0) const
 For this data, creates an on-off quality data. More...
 
void createSimpleQualityData (PlainData< DT > &qualityData, double dataQuality=1.0, double undetectQuality=0.5, double nodataQuality=0.0) const
 For this data, creates an on-off quality data.
 
void updateTree2 ()
 TODO: consider this to destructor.
 
- Public Member Functions inherited from TreeWrapper< DT >
const drain::VariableMapgetWhat () const
 
drain::VariableMapgetWhat ()
 
const drain::VariableMapgetWhere () const
 
drain::VariableMapgetWhere ()
 
const drain::VariableMapgetHow () const
 
drain::VariableMapgetHow ()
 
void setExcluded (bool exclude=true)
 
bool isExcluded () const
 
virtual const tree_t & getTree () const
 
virtual tree_t & getTree ()
 

Public Attributes

image_t & data
 
odim_t odim
 

Additional Inherited Members

- Protected Member Functions inherited from TreeWrapper< DT >
 TreeWrapper (tree_t &tree)
 
 TreeWrapper (const TreeWrapper &d)
 
template<ODIMPathElem::group_t G>
const drain::VariableMapgetAttr () const
 
template<ODIMPathElem::group_t G>
drain::VariableMapgetAttr ()
 
- Protected Attributes inherited from TreeWrapper< DT >
tree_t & tree
 General HDF5 data structure.
 

Detailed Description

template<typename DT>
class rack::PlainData< DT >

Essential class for storing radar data.

Combines 2D image data and metadata.

For metadata, uses ODIM variables, hence replacing native

Template Parameters
DT- data type: SrcType<T> or DstType<T> with ODIM template T = PolarODIM|CartesianODIM|...

Constructor & Destructor Documentation

◆ PlainData()

PlainData ( const PlainData< DT2 > &  d)
inline

Copy constructor, also for referencing non-const as const.

 Compiler returns error if odim types ar incompatible.

PlainData(const PlainData<DT> & d) : TreeWrapper

(d.getTree()), data(this->tree["data"].data.image), odim(data) // NEW { }

Member Function Documentation

◆ copyGeometry()

void copyGeometry ( const PlainData< DT2 > &  srcData)
inline

Copy dimensions of data array and resolution (rscale or xscale,yscale)

Although templated, makes sense only across the Src and Dst types of same ODIM class.

◆ createSimpleQualityData()

void createSimpleQualityData ( drain::image::Image quality,
double  dataQuality = 1.0,
double  undetectQuality = 0.5,
double  nodataQuality = 0.0 
) const

For this data, creates an on-off quality data.

Template Parameters
DT- data type (PolarSrc, PolarDst, CartesianSrc, CartesianDst, ...)

◆ setGeometry()

void setGeometry ( const odim_t &  odim)
inline

Copy dimensions of data array and resolution (rscale or xscale,yscale)

Although templated, makes sense only across the Src and Dst types of same ODIM class.


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