|  |  | 
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(). | |
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.
| void setBinPosition | ( | const double & | azimuth, | 
| const float & | range | ||
| ) | 
| alpha | is azimuth in radians, | 
| 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));
| void setOrigin | ( | const double & | theta, | 
| const double & | phi | ||
| ) | 
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
 1.9.8