Coordinate conversions and transformations (pymgp.crstrans
)#
This module provides basic functions for coordinate conversions and transformations for Earth Centered Earth Fixed Cartesian coordinates, local topocentric coordinates, and ellipsoidal geodetic latitude, longitude and height.
Coordinate conversions in ECEF reference frame#
|
Convert Cartesian XYZ coordinates to Ellipsoidal latitude, longitude and height coordinates. |
|
Convert ellipsoidal coordinates (latitude, longitude and height) to Cartesian coordinates. |
|
Semi-major axis, flattening and GM for various ellipsoids. |
|
Set current ellipsoid. |
Curvilinear coordinate conversions#
|
Multiplication factors to convert latitude and longitude angles to meters. |
Coordinate transformations between ECEF and local (topocentric) reference frames#
|
Convert Cartesian XYZ coordinates to local coordinates (North,East,Up). |
|
Convert local coordinates (North,East,Up) to Cartesian coordinates aligned to the ECEF frame. |
|
Cartesian XYZ coordinates to zenith angle, azimuth and distance. |
|
Zenith angle, azimuth and distance to cartesian XYZ coordinates. |
|
Compute unit normal vector (ECEF) perpendicular to the ellipsoid at a given location. |
|
Rotation matrix for ECEF to topocentric coordinates. |
|
Transform and reformat compact co-variance matrices/vectors. |
Print functions#
|
Print a table with coordinates and optional standard deviation/co-variance information. |
|
Print Cartesian coordinates in fixed format with 0.1 mm precision. |
|
Print Geographic (Lat, Lon, Height) coordinates in fixed format with 0.1 mm precision. |
|
Convert latitude/longitude angles into a string with degrees, minutes and second format. |
The functions are optimized for Python’s numpy library, it accepts mostly numpy alike ndarrays with the coordinates (usually three) in the last axis.