radolan  1.2.0
Public Member Functions | List of all members
Radolan::RDCoordinateSystem Class Reference

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...
 
RDGeographicalPointgeographicalPolygonForGridpoint (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...
 

Detailed Description

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.

Constructor & Destructor Documentation

Radolan::RDCoordinateSystem::RDCoordinateSystem ( RDScanType  type)

Constructs a coordinate system for a specific RDScanType.

Constructor.

Parameters
type

Member Function Documentation

RDCartesianPoint Radolan::RDCoordinateSystem::cartesianCoordinate ( RDGeographicalPointRad  coord)

Calculate the polar stereographic coordinate from the given geographical coordinate.

Parameters
coordgeographical coordinate in radians
Returns
cartesian coordinate in the polar stereographic coordinate system
RDCartesianPoint Radolan::RDCoordinateSystem::cartesianCoordinate ( RDGeographicalPoint  coord)

Calculate the polar stereographic coordinate from the given geographical coordinate.

Parameters
coordgeographical coordinate in deg
Returns
cartesian coordinate in the polar stereographic coordinate system
RDCartesianPoint Radolan::RDCoordinateSystem::cartesianCoordinate ( RDGridPoint  gridpoint)

Calculate the polar stereographic coordinate from the given grid point.

Parameters
gridpointgrid point
Returns
cartesian coordinate in the polar stereographic coordinate system
RDGeographicalPoint Radolan::RDCoordinateSystem::geographicalCoordinate ( RDCartesianPoint  p)

Calculate geographical coordinate from the given polar stereographic coordinate.

Parameters
pcartesian coordinate in the polar stereographic coordinate system
Returns
geographical coordinate in deg
RDGeographicalPoint Radolan::RDCoordinateSystem::geographicalCoordinate ( RDGridPoint  p)

Calculate geographical coordinate from the given polar stereographic coordinate.

Parameters
pgrid point
Returns
geographical coordinate in deg
RDGeographicalPointRad Radolan::RDCoordinateSystem::geographicalCoordinateRad ( RDCartesianPoint  p)

Calculate geographical coordinate from the given polar stereographic coordinate.

Parameters
pcartesian coordinate in the polar stereographic coordinate system
Returns
geographical coordinate in radians
RDGeographicalPointRad Radolan::RDCoordinateSystem::geographicalCoordinateRad ( RDGridPoint  p)

Calculate geographical coordinate from the given polar stereographic coordinate.

Parameters
pgrid point
Returns
geographical coordinate in radians
RDGeographicalPoint* Radolan::RDCoordinateSystem::geographicalPolygonForGridpoint ( RDGridPoint  p,
int &  num 
)

Calculate the geographical coordinates for the bounding box of the given grid point.

Parameters
pgrid point
numcontains the number of points in the polygon after the call
Returns
array of geographical coordinates (the polygon's points)
RDGridPoint Radolan::RDCoordinateSystem::gridPoint ( RDCartesianPoint  p,
bool &  isInside 
)

Calculate the nearest grid point for the given cartesian coordinate.

Parameters
pcartesian coordinate
isInsidecontains the result of the bounds check. If given coordinate is outside the grid, this value will be false, otherwise true.
Returns
grid point
RDGridPoint Radolan::RDCoordinateSystem::gridPoint ( RDGeographicalPoint  p,
bool &  isInside 
)

Calculate the nearest grid point for the given geographical coordinate.

Parameters
pgeographical coordinate in deg
isInsidecontains the result of the bounds check. If given coordinate is outside the grid, this value will be false, otherwise true.
Returns
grid point
RDGridPoint Radolan::RDCoordinateSystem::gridPoint ( RDGeographicalPointRad  p,
bool &  isInside 
)

Calculate the nearest grid point for the given geographical coordinate.

Parameters
pgeographical coordinate in radians
isInsidecontains the result of the bounds check. If given coordinate is outside the grid, this value will be false, otherwise true.
Returns
grid point
double Radolan::RDCoordinateSystem::polarStereographicScalingFactor ( double  phi0,
double  phi 
)

Scaling Factor for the polar stereographic projection.

Parameters
phi0
phi
Returns
scaling factor.
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.

Parameters
pgrid point
Returns
quadrant
void Radolan::RDCoordinateSystem::setScanType ( RDScanType  type)

Changes the scan type.

Parameters
typescan type
RDGeographicalPoint Radolan::RDCoordinateSystem::toDeg ( RDGeographicalPointRad  p)

Convert radians to deg.

Parameters
pgeographical coordinate in radians
Returns
geographical coordinate in deg
RDGeographicalPointRad Radolan::RDCoordinateSystem::toRad ( RDGeographicalPoint  p)

Convert deg to radians.

Parameters
pgeographical coordinate in deg
Returns
geographical coordinate in radians

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