![]() |
|
Simple spherical coordinate computation. Does not handle projections, but earth coords. More...
#include <Coordinates.h>
Public Member Functions | |
| void | setOrigin (const double &theta, const double &phi) |
| Radar site latitude and longitude in radians. | |
| void | setOriginDeg (const double &lat, const double &lon) |
| Set target projection. // void setProjection(const std::string &s);. | |
| void | setBinPosition (const double &alpha, const float &range) |
| void | info (std::ostream &ostr=std::cout) |
| Determines the bounding box (in degrees) of the circular radar measurement area. | |
| double | binLatitudeDeg () |
| Bin latitude in degrees after calling bin_position(). | |
| double | binLongitudeDeg () |
| Bin longitude in degrees after calling bin_position(). | |
Public Attributes | |
| double | p01 |
| Radar position vector (from Earth center to surface. | |
| double | p02 |
| double | p03 |
| double | p1 |
| Earth centered coordinates [p_1 p_2 p_3] of the current bin position. | |
| double | p2 |
| double | p3 |
| double | e11 |
| Elelements of the East pointing site unit vector [e11 e12 e13]. | |
| double | e12 |
| double | e13 |
| double | e21 |
| Elelements of the North pointing site unit vector [e21 e22 e23]. | |
| double | e22 |
| double | e23 |
| double | thetaBin |
| Bin latitude in radians after calling bin_position(). | |
| double | phiBin |
| Bin longitude in radians after calling bin_position(). | |
Simple spherical coordinate computation. Does not handle projections, but earth coords.
Note. This is a model for ideal sphere, defined as
where R is the radius of the Earth. Use getDatumString() to get the actual std::string.
Note that this is not equivalent with
| void info | ( | std::ostream & | ostr = std::cout | ) |
Determines the bounding box (in degrees) of the circular radar measurement area.
Info
Sets surface coordinates (phiBin, thetaBin) according to polar coordinates.
Polar coordinates.
| range | in metres. |
Explanation? Sets surface coordinates (phiBin, thetaBin) according to polar coordinates.
lon = atan2((e11*x1 + e21*x2 + p01*x3), (e12*x1 + e22*x2 + p02*x3));
Radar site latitude and longitude in radians.
Set origin in radians.
To speed up the computation of bin locations, some internal variables are set at this stage.
| theta | latitude in radians |
| phi | longitude in radians |
1.9.8