27 #ifndef __RADAR_ODIMH5V20_SUPPORT_HPP__
28 #define __RADAR_ODIMH5V20_SUPPORT_HPP__
85 void parse(
const std::string& val);
160 void parse(
const std::string value);
183 OperaRadarSite = value;
192 OriginatingCenter = value;
263 AZAngles(
double start,
double stop);
280 void set(
double start,
double stop);
289 void parse(
const std::string& str);
302 std::string
toString(
int precision)
const;
309 static std::vector<AZAngles> parseSequence(
const std::string& str);
315 static std::string
toString(
const std::vector<AZAngles>& right);
323 static std::string
toString(
const std::vector<AZAngles>& right,
int precision);
364 AZTimes(
double start,
double stop);
371 AZTimes(
const std::string& str);
379 void set(
double start,
double stop);
387 void parse(
const std::string& str);
399 static std::vector<AZTimes> parseSequence(
const std::string& str);
404 static std::string
toString(
const std::vector<AZTimes>& right);
446 void set(
double bottom,
double top);
450 void parse(
const std::string& str);
529 inline void resize(
const int rows,
const int cols)
531 resize(rows, cols, fillvalue);
542 inline void resize(
const int rows,
const int cols,
const T fillvalue)
546 cells.resize(rows * cols *
sizeof(T));
554 fill(this->fillvalue);
561 int total = rows * cols;
562 for (
int i=0; i<total; i++)
564 this->fillvalue = value;
573 inline T&
elem(
const int r,
const int b)
575 return cells[r * cols + b];
580 inline const T*
get()
const
597 std::vector<T> cells;
666 inline void resize(
const int rays,
const int bins)
679 inline void resize(
const int rays,
const int bins,
const T fillvalue)
725 Angles(
const std::string& value);
732 void set(
double value);
741 void parse(
const std::string& str);
754 std::string
toString(
int precision)
const;
761 static std::vector<Angles> parseSequence(
const std::string& str);
767 static std::string
toString(
const std::vector<Angles>& right);
774 static std::string
toString(
const std::vector<Angles>& right,
int precision);
815 void set(
double value);
824 void parse(
const std::string& str);
837 std::string
toString(
int precision)
const;
844 static std::vector<Arotation> parseSequence(
const std::string& str);
850 static std::string
toString(
const std::vector<Arotation>& right);
857 static std::string
toString(
const std::vector<Arotation>& right,
int precision);
887 Nodes(
const std::string & radar);
892 Nodes(
const char * radar);
894 std::string get()
const;
901 void set(
const std::string & radar);
908 void set(
const char * radar);
915 static std::vector<Nodes> parseSequence(
const std::string& str);
921 static std::string
toString(
const std::vector<Nodes>& radars);
Azimuth angles pair.
Definition: odimh5v20_support.hpp:236
double start
Start azimuth angle.
Definition: odimh5v20_support.hpp:243
double stop
Stop azimuth angle.
Definition: odimh5v20_support.hpp:249
Azimuth angles pair.
Definition: odimh5v20_support.hpp:338
double start
Start azimuth time (seconds.milliseconds)
Definition: odimh5v20_support.hpp:345
double stop
Start azimuth time (seconds.milliseconds)
Definition: odimh5v20_support.hpp:351
Elevation angle.
Definition: odimh5v20_support.hpp:705
double value
Elevation angle Elevation angles are ordered from lower to upper values.
Definition: odimh5v20_support.hpp:711
Arotation - Antenna Rotation Speed.
Definition: odimh5v20_support.hpp:789
double value
Antenna rotation speed.
Definition: odimh5v20_support.hpp:794
Matrix of data values.
Definition: odimh5v20_support.hpp:472
void resize(const int rows, const int cols, const T fillvalue)
Resize the matrix.
Definition: odimh5v20_support.hpp:542
int getColCount() const
Return the number of cols.
Definition: odimh5v20_support.hpp:591
DataMatrix(int rows, int cols, T value)
Create an empty rows x cols matrix, setting elements to 0.
Definition: odimh5v20_support.hpp:510
int getRowCount() const
Return the number of rows.
Definition: odimh5v20_support.hpp:587
DataMatrix()
Create an empty 0x0 matrix.
Definition: odimh5v20_support.hpp:480
void erase()
Set all matrix values to the current fill value.
Definition: odimh5v20_support.hpp:552
const T * get() const
Return the pointer to the underneath data buffer.
Definition: odimh5v20_support.hpp:580
void resize(const int rows, const int cols)
Resize the matrix.
Definition: odimh5v20_support.hpp:529
T & elem(const int r, const int b)
Reference to the element (r,b)
Definition: odimh5v20_support.hpp:573
void fill(T value)
Set all matrix values to the given value.
Definition: odimh5v20_support.hpp:559
DataMatrix(int rows, int cols)
Create an empty rows x cols matrix.
Definition: odimh5v20_support.hpp:495
OdimH5 model version informations.
Definition: odimh5v20_support.hpp:54
Nodes - Radar nodes which have crontributed data to composit.
Definition: odimh5v20_support.hpp:872
OdimH5 rays matrix.
Definition: odimh5v20_support.hpp:616
int getRayCount() const
Get the number of rays that can be store in the matrix (matrix rows num)
Definition: odimh5v20_support.hpp:686
RayMatrix(int rays, int bins)
Definition: odimh5v20_support.hpp:637
void resize(const int rays, const int bins)
Resize the matrix.
Definition: odimh5v20_support.hpp:666
void resize(const int rays, const int bins, const T fillvalue)
Resize the matrix.
Definition: odimh5v20_support.hpp:679
RayMatrix(int rays, int bins, T fillvalue)
Definition: odimh5v20_support.hpp:651
RayMatrix()
Definition: odimh5v20_support.hpp:624
int getBinCount() const
Get the number of bins that can be store in a single ray (matrix cols num)
Definition: odimh5v20_support.hpp:690
OdimH5 object source informations.
Definition: odimh5v20_support.hpp:111
std::string Comment
Free comment.
Definition: odimh5v20_support.hpp:136
std::string Place
Place according to Table 9 of OdimH5 standard.
Definition: odimh5v20_support.hpp:128
int OriginatingCenter
Originating centre.
Definition: odimh5v20_support.hpp:124
SourceInfo & setOperaRadarSite(const std::string &value)
Set OperaRadarSite value and return a reference to this object.
Definition: odimh5v20_support.hpp:181
std::string OperaRadarSite
Radar site as indexed in the OPERA database.
Definition: odimh5v20_support.hpp:120
SourceInfo & setPlace(const std::string &value)
Set Place value and return a reference to this object.
Definition: odimh5v20_support.hpp:199
SourceInfo & setCountry(int value)
Set Country value and return a reference to this object.
Definition: odimh5v20_support.hpp:208
int Country
Country according to BUFR tables 14 0 1 101.
Definition: odimh5v20_support.hpp:132
SourceInfo & setComment(const std::string &value)
Set Comment value and return a reference to this object.
Definition: odimh5v20_support.hpp:217
SourceInfo & setWMO(const std::string &value)
Set WMO value and return a reference to this object.
Definition: odimh5v20_support.hpp:172
std::string WMO
Combined WMO block and station number in the form A1bwnnnnn, or 0 if none assigned.
Definition: odimh5v20_support.hpp:116
SourceInfo & setOriginatingCenter(int value)
Set OriginatingCenter value and return a reference to this object.
Definition: odimh5v20_support.hpp:190
Bottom and top heights (m) of the integration layer.
Definition: odimh5v20_support.hpp:418
double bottom
Lower value in meters.
Definition: odimh5v20_support.hpp:423
double top
Upper value in meters.
Definition: odimh5v20_support.hpp:427
Namespace related to ODIMH5 version 2.0.
Definition: odimh5v20.hpp:46
std::string toString(const T &value)
Convert a value to its string rapresentation.
Definition: string.hpp:139
static T parse(const std::string &str, const std::string &typestr)
Parse a std::string to a given type value.
Definition: string.hpp:308