radolan
1.2.0
|
This class wraps a number of routines to deal with the radolan specific coordinate systems. More...
#include <coordinate_system.h>
Public Member Functions | |
RDCoordinateSystem (RDScanType type) | |
Constructs a coordinate system for a specific RDScanType. More... | |
virtual | ~RDCoordinateSystem () |
Destructor. | |
void | setScanType (RDScanType type) |
Changes the scan type. More... | |
RDCartesianPoint | cartesianCoordinate (RDGeographicalPointRad coord) |
Calculate the polar stereographic coordinate from the given geographical coordinate. More... | |
RDCartesianPoint | cartesianCoordinate (RDGeographicalPoint coord) |
Calculate the polar stereographic coordinate from the given geographical coordinate. More... | |
RDCartesianPoint | cartesianCoordinate (RDGridPoint gridpoint) |
Calculate the polar stereographic coordinate from the given grid point. More... | |
RDGeographicalPoint | geographicalCoordinate (RDCartesianPoint p) |
Calculate geographical coordinate from the given polar stereographic coordinate. More... | |
RDGeographicalPoint | geographicalCoordinate (RDGridPoint p) |
Calculate geographical coordinate from the given polar stereographic coordinate. More... | |
RDGeographicalPointRad | geographicalCoordinateRad (RDCartesianPoint p) |
Calculate geographical coordinate from the given polar stereographic coordinate. More... | |
RDGeographicalPointRad | geographicalCoordinateRad (RDGridPoint p) |
Calculate geographical coordinate from the given polar stereographic coordinate. More... | |
RDGeographicalPointRad | toRad (RDGeographicalPoint p) |
Convert deg to radians. More... | |
RDGeographicalPoint | toDeg (RDGeographicalPointRad p) |
Convert radians to deg. More... | |
RDGeographicalPoint * | geographicalPolygonForGridpoint (RDGridPoint p, int &num) |
Calculate the geographical coordinates for the bounding box of the given grid point. More... | |
RDGridPoint | gridPoint (RDCartesianPoint p, bool &isInside) |
Calculate the nearest grid point for the given cartesian coordinate. More... | |
RDGridPoint | gridPoint (RDGeographicalPoint p, bool &isInside) |
Calculate the nearest grid point for the given geographical coordinate. More... | |
RDGridPoint | gridPoint (RDGeographicalPointRad p, bool &isInside) |
Calculate the nearest grid point for the given geographical coordinate. More... | |
RDGridQuadrant | RDQuadrant (RDGridPoint p) |
Find out what quadrant of the grid with respect to the grid's cartesian origin coordinates the given grid point resides in. More... | |
double | polarStereographicScalingFactor (double phi0, double phi) |
Scaling Factor for the polar stereographic projection. More... | |
This class wraps a number of routines to deal with the radolan specific coordinate systems.
It provides methods for converting geographical coordinates into cartesian coordinates (within the radolan grid) as well as conversion from and to grid points - aka index pairs.
Definition at line 153 of file coordinate_system.h.
Radolan::RDCoordinateSystem::RDCoordinateSystem | ( | RDScanType | type | ) |
Constructs a coordinate system for a specific RDScanType.
Constructor.
type |
RDCartesianPoint Radolan::RDCoordinateSystem::cartesianCoordinate | ( | RDGeographicalPointRad | coord | ) |
Calculate the polar stereographic coordinate from the given geographical coordinate.
coord | geographical coordinate in radians |
RDCartesianPoint Radolan::RDCoordinateSystem::cartesianCoordinate | ( | RDGeographicalPoint | coord | ) |
Calculate the polar stereographic coordinate from the given geographical coordinate.
coord | geographical coordinate in deg |
RDCartesianPoint Radolan::RDCoordinateSystem::cartesianCoordinate | ( | RDGridPoint | gridpoint | ) |
Calculate the polar stereographic coordinate from the given grid point.
gridpoint | grid point |
RDGeographicalPoint Radolan::RDCoordinateSystem::geographicalCoordinate | ( | RDCartesianPoint | p | ) |
Calculate geographical coordinate from the given polar stereographic coordinate.
p | cartesian coordinate in the polar stereographic coordinate system |
RDGeographicalPoint Radolan::RDCoordinateSystem::geographicalCoordinate | ( | RDGridPoint | p | ) |
Calculate geographical coordinate from the given polar stereographic coordinate.
p | grid point |
RDGeographicalPointRad Radolan::RDCoordinateSystem::geographicalCoordinateRad | ( | RDCartesianPoint | p | ) |
Calculate geographical coordinate from the given polar stereographic coordinate.
p | cartesian coordinate in the polar stereographic coordinate system |
RDGeographicalPointRad Radolan::RDCoordinateSystem::geographicalCoordinateRad | ( | RDGridPoint | p | ) |
Calculate geographical coordinate from the given polar stereographic coordinate.
p | grid point |
RDGeographicalPoint* Radolan::RDCoordinateSystem::geographicalPolygonForGridpoint | ( | RDGridPoint | p, |
int & | num | ||
) |
Calculate the geographical coordinates for the bounding box of the given grid point.
p | grid point |
num | contains the number of points in the polygon after the call |
RDGridPoint Radolan::RDCoordinateSystem::gridPoint | ( | RDCartesianPoint | p, |
bool & | isInside | ||
) |
Calculate the nearest grid point for the given cartesian coordinate.
p | cartesian coordinate |
isInside | contains the result of the bounds check. If given coordinate is outside the grid, this value will be false, otherwise true. |
RDGridPoint Radolan::RDCoordinateSystem::gridPoint | ( | RDGeographicalPoint | p, |
bool & | isInside | ||
) |
Calculate the nearest grid point for the given geographical coordinate.
p | geographical coordinate in deg |
isInside | contains the result of the bounds check. If given coordinate is outside the grid, this value will be false, otherwise true. |
RDGridPoint Radolan::RDCoordinateSystem::gridPoint | ( | RDGeographicalPointRad | p, |
bool & | isInside | ||
) |
Calculate the nearest grid point for the given geographical coordinate.
p | geographical coordinate in radians |
isInside | contains the result of the bounds check. If given coordinate is outside the grid, this value will be false, otherwise true. |
double Radolan::RDCoordinateSystem::polarStereographicScalingFactor | ( | double | phi0, |
double | phi | ||
) |
Scaling Factor for the polar stereographic projection.
phi0 | |
phi |
RDGridQuadrant Radolan::RDCoordinateSystem::RDQuadrant | ( | RDGridPoint | p | ) |
Find out what quadrant of the grid with respect to the grid's cartesian origin coordinates the given grid point resides in.
p | grid point |
void Radolan::RDCoordinateSystem::setScanType | ( | RDScanType | type | ) |
Changes the scan type.
type | scan type |
RDGeographicalPoint Radolan::RDCoordinateSystem::toDeg | ( | RDGeographicalPointRad | p | ) |
Convert radians to deg.
p | geographical coordinate in radians |
RDGeographicalPointRad Radolan::RDCoordinateSystem::toRad | ( | RDGeographicalPoint | p | ) |
Convert deg to radians.
p | geographical coordinate in deg |