Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
DataConversionOp< M > Class Template Reference

Converts HDF5 data to use desired data type, scaling and encoding (ODIM gain, offset, undetect and nodata values). More...

#include <DataConversionOp.h>

Inheritance diagram for DataConversionOp< M >:
Inheritance graph
[legend]
Collaboration diagram for DataConversionOp< M >:
Collaboration graph
[legend]

Public Types

typedef SrcType< M const > src_t
 
typedef DstType< M > dst_t
 

Public Member Functions

 DataConversionOp (const std::string &type="C", double gain=1.0, double offset=0.0, double undetect=0.0, double nodata=255.0, std::string copyGroupSuffix="")
 
virtual void processH5 (const Hi5Tree &src, Hi5Tree &dst) const
 Ensures data to be in standard type and scaling. Makes a converted copy if needed. More...
 
virtual void processDataSet (const DataSet< src_t > &srcSweep, DataSet< dst_t > &dstProduct) const
 
void processImage (const PlainData< src_t > &src, drain::image::Image &dst) const
 
void processImage (const ODIM &odimSrc, const drain::image::ImageFrame &src, const ODIM &odimDst, drain::image::Image &dst) const
 Converts src to dst such that dst applies desired gain, offset, undetect and nodata values. More...
 
void processImage2023 (const ODIM &srcOdim, const drain::image::ImageFrame &src, drain::image::Image &dst) const
 
void traverseImageFrame (const ODIM &odimSrc, const drain::image::ImageFrame &src, const ODIM &odimDst, drain::image::ImageFrame &dst) const
 
void setGeometry (const M &srcODIM, PlainData< dst_t > &dstData) const
 

Static Public Member Functions

static PlainData< DstType< M > > & getNormalizedData (const DataSet< src_t > &srcDataSet, DataSet< dst_t > &dstDataSet, const std::string &quantity)
 

Protected Attributes

std::string copyGroupSuffix
 Suffix for trailing path element ("/data") for storing the original.
 

Detailed Description

template<class M>
class rack::DataConversionOp< M >

Converts HDF5 data to use desired data type, scaling and encoding (ODIM gain, offset, undetect and nodata values).

Template Parameters
M- ODIM type
See also
Conversion

Member Function Documentation

◆ processDataSet()

void processDataSet ( const DataSet< src_t > &  srcSweep,
DataSet< dst_t > &  dstProduct 
) const
virtual

SWAP & delete

◆ processH5()

void processH5 ( const Hi5Tree &  src,
Hi5Tree &  dst 
) const
virtual

Ensures data to be in standard type and scaling. Makes a converted copy if needed.

Converts src to dst such that dst applies desired gain, offset, undetect and nodata values.

The operator does not need groups sorted by elevation.

◆ processImage()

void processImage ( const ODIM odimSrc,
const drain::image::ImageFrame src,
const ODIM odimDst,
drain::image::Image dst 
) const

Converts src to dst such that dst applies desired gain, offset, undetect and nodata values.

Sometimes this is applied directly (for alpha channel ops).

◆ traverseImageFrame()

void traverseImageFrame ( const ODIM odimSrc,
const drain::image::ImageFrame src,
const ODIM odimDst,
drain::image::ImageFrame dst 
) const

Checks 'undetect' first because 'undetect' and 'nodata' may be the same code


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