Public Member Functions | Public Attributes | List of all members
Coordinates Class Reference

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. More...
 
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. More...
 
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().
 

Detailed Description

Simple spherical coordinate computation. Does not handle projections, but earth coords.

Variable names

Note. This is a model for ideal sphere, defined as

"+proj=longlat +R=6371000 +no_defs";

where R is the radius of the Earth. Use getDatumString() to get the actual std::string.

Note that this is not equivalent with

EPSG:4326 = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs";

Member Function Documentation

◆ info()

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.

◆ setBinPosition()

void setBinPosition ( const double &  azimuth,
const float &  range 
)
Parameters
alphais azimuth in radians,
rangein 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));

◆ setOrigin()

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.

Parameters
thetalatitude in radians
philongitude in radians

The documentation for this class was generated from the following files: