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#

xyz2plh(xyz[, ellipsoid, method, unit])

Convert Cartesian XYZ coordinates to Ellipsoidal latitude, longitude and height coordinates.

plh2xyz(plh[, ellipsoid, unit])

Convert ellipsoidal coordinates (latitude, longitude and height) to Cartesian coordinates.

inqell([ellipsoid])

Semi-major axis, flattening and GM for various ellipsoids.

setell([ellipsoid])

Set current ellipsoid.

Curvilinear coordinate conversions#

ellcurvature(lat, height[, unit, ellipsoid])

Multiplication factors to convert latitude and longitude angles to meters.

Coordinate transformations between ECEF and local (topocentric) reference frames#

xyz2neu(xyz, ref[, origin, mode, unit, ...])

Convert Cartesian XYZ coordinates to local coordinates (North,East,Up).

neu2xyz(neu, ref[, origin, mode, unit, ...])

Convert local coordinates (North,East,Up) to Cartesian coordinates aligned to the ECEF frame.

xyz2zas(xyz, ref[, origin, mode, refunit, ...])

Cartesian XYZ coordinates to zenith angle, azimuth and distance.

zas2xyz(zas, ref[, origin, mode, refunit, ...])

Zenith angle, azimuth and distance to cartesian XYZ coordinates.

ellnormal(ref[, mode, unit])

Compute unit normal vector (ECEF) perpendicular to the ellipsoid at a given location.

ellrotmatrix(ref[, mode, unit])

Rotation matrix for ECEF to topocentric coordinates.

covtransform(qin, fmtin, fmtout[, rotmatrix])

Transform and reformat compact co-variance matrices/vectors.