Azimuth angles pair.
More...
#include <radarlib/odimh5v21_support.hpp>
|
| AZAngles () |
| Create an object with start and stop set to 0.
|
|
| AZAngles (double start, double stop) |
| Create a pair and set fields using the values passed.
|
|
| AZAngles (const std::string &value) |
| Create a pair and object fields decoding the indicated string.
|
|
void | set (double start, double stop) |
| Set fields.
|
|
void | parse (const std::string &str) |
| Set object fields decoding the indicated string.
|
|
std::string | toString () const |
| Convert angles to a string formated acording to OdimH5 specifications.
|
|
std::string | toString (int precision) const |
| Convert angles to a string formated acording to OdimH5 specifications.
|
|
double | averagedAngle (int direction=0) |
| Compute the averarged angle between start and stop tacking into account direction of antenna movement. (if not passed it is sassumed CW)
|
|
|
static std::vector< AZAngles > | parseSequence (const std::string &str) |
| Create a collection of azimuth angles splitting and decoding a string.
|
|
static std::vector< AZAngles > | parseSimpleArrays (const std::vector< double > &first, const std::vector< double > &second) |
| Create a collection of azimuth angles importing two vector of double.
|
|
static std::string | toString (const std::vector< AZAngles > &right) |
|
static std::string | toString (const std::vector< AZAngles > &right, int precision) |
| Convert a collection of azimuth angles to a string formated according to OdimH5 specifications.
|
|
|
double | start |
| Start azimuth angle.
|
|
double | stop |
| Stop azimuth angle.
|
|
Azimuth angles pair.
This class represent a ray's start and stop azimuth angles
- See also
- PolarScan | AZTimes
◆ AZAngles() [1/3]
OdimH5v21::AZAngles::AZAngles |
( |
| ) |
|
Create an object with start and stop set to 0.
◆ AZAngles() [2/3]
OdimH5v21::AZAngles::AZAngles |
( |
double |
start, |
|
|
double |
stop |
|
) |
| |
Create a pair and set fields using the values passed.
- Parameters
-
start | value for start angle |
stop | value for stop angle |
◆ AZAngles() [3/3]
OdimH5v21::AZAngles::AZAngles |
( |
const std::string & |
value | ) |
|
Create a pair and object fields decoding the indicated string.
- Parameters
-
value | a string formatted like "value:value" |
- Exceptions
-
◆ set()
void OdimH5v21::AZAngles::set |
( |
double |
start, |
|
|
double |
stop |
|
) |
| |
Set fields.
- Parameters
-
start | value for start angle |
stop | value for stop angle |
◆ parse()
void OdimH5v21::AZAngles::parse |
( |
const std::string & |
str | ) |
|
Set object fields decoding the indicated string.
- Parameters
-
str | a string formatted like "value:value" |
- Exceptions
-
◆ toString() [1/4]
std::string OdimH5v21::AZAngles::toString |
( |
| ) |
const |
Convert angles to a string formated acording to OdimH5 specifications.
◆ toString() [2/4]
std::string OdimH5v21::AZAngles::toString |
( |
int |
precision | ) |
const |
Convert angles to a string formated acording to OdimH5 specifications.
- Parameters
-
precision | precision to use when converting double values to strings |
◆ parseSequence()
std::vector< AZAngles > OdimH5v21::AZAngles::parseSequence |
( |
const std::string & |
str | ) |
|
|
static |
Create a collection of azimuth angles splitting and decoding a string.
- Parameters
-
str | a string formatted like "value:value,value:value,..." |
- Exceptions
-
◆ parseSimpleArrays()
std::vector< AZAngles > OdimH5v21::AZAngles::parseSimpleArrays |
( |
const std::vector< double > & |
first, |
|
|
const std::vector< double > & |
second |
|
) |
| |
|
static |
Create a collection of azimuth angles importing two vector of double.
- Parameters
-
first | a vector of double |
second | a vector of double |
- Exceptions
-
◆ toString() [3/4]
std::string OdimH5v21::AZAngles::toString |
( |
const std::vector< AZAngles > & |
right | ) |
|
|
static |
- Parameters
-
right | the values to convert Convert a collection of azimuth angles to a string formated acording to OdimH5 specifications |
◆ toString() [4/4]
std::string OdimH5v21::AZAngles::toString |
( |
const std::vector< AZAngles > & |
right, |
|
|
int |
precision |
|
) |
| |
|
static |
Convert a collection of azimuth angles to a string formated according to OdimH5 specifications.
- Parameters
-
right | the destination string |
precision | the precision to use while converting values to string |
precision | precision to use when converting double values to strings |
◆ averagedAngle()
double OdimH5v21::AZAngles::averagedAngle |
( |
int |
direction = 0 | ) |
|
Compute the averarged angle between start and stop tacking into account direction of antenna movement. (if not passed it is sassumed CW)
- Parameters
-
direction | sign of antenna speed rotation |
◆ start
double OdimH5v21::AZAngles::start |
Start azimuth angle.
Azimuth angles are clock-wise ordered, so start value is lower than stop value
◆ stop
double OdimH5v21::AZAngles::stop |
Stop azimuth angle.
Azimuth angles are clock-wise ordered, so stop value is bigger than stat value
The documentation for this class was generated from the following files: