|
Base class for utilities traversing radar data with Sampler. More...
#include <RadarDataPicker.h>
Public Types | |
typedef SrcType< OD const > | src_t |
Input source type. | |
typedef PlainData< src_t > | data_t |
Input data type. | |
typedef DataSet< src_t > | dataset_t |
Input dataSet type. | |
typedef std::map< std::string, const data_t & > | map_t |
Map type compatible with Sampler. | |
Public Member Functions | |
RadarDataPicker (drain::ReferenceMap2<> &variableMap, const OD &odim) | |
Default constructor. | |
bool | getValue (const data_t &data, double &value) const |
Reads a value, and scales it unless nodata or undetect . | |
void | toOStr (std::ostream &ostr=std::cout) const |
Prints images geometry, buffer size and type information. | |
Public Member Functions inherited from SamplePicker | |
SamplePicker (ReferenceMap2<> &variableMap) | |
void | setSize (int w, int h) |
virtual void | setPosition (int i, int j) const |
Sets current position in image coordinates. To be redefined to compute also geographical projections, for example. | |
Protected Attributes | |
double | x |
Metric coordinate corresponding to longitudinal coordinate. | |
double | y |
Metric coordinate corresponding to latitudinal coordinate. | |
double | lon |
Longitudinal coordinate (degrees) | |
double | lat |
Latitudinal coordinate (degrees) | |
const OD & | odim |
Metadata for navigating and scaling grid data. | |
Additional Inherited Members | |
Public Attributes inherited from SamplePicker | |
int | current_i = 0 |
Optional utility. Called prior to writing the actual data to output stream. More... | |
int | current_j = 0 |
Vertical coordinate. | |
int | current_j2 = 0 |
Vertical inversed coordinate. | |
int | width = 0 |
int | height = 0 |
FlexVariableMap | infoMap |
Information to be should in output file header. | |
ReferenceMap2 & | variableMap |
Base class for utilities traversing radar data with Sampler.
OD | - odim type (PolarODIM or CartesianODIM) |
TODO: min/max coord control, like CoordHandler for checking min and max. => drain::Sampler