PyCoordGeodetic#

class cysgp4.PyCoordGeodetic(double lon_deg=0, double lat_deg=0, double alt_km=0)#

Bases: object

Thin wrapper around sgp4 (C++) CoordGeodetic struct.

The CoordGeodetic struct holds a geographic location (latitude, longitude, altitude).

Parameters:
lon_degfloat (default: 0.)

Longitude of geographic location [deg].

lat_degfloat (default: 0.)

Latitude of geographic location [deg].

alt_kmfloat (default: 0.)

Altitude of geographic location [km].

Returns:
geoPyCoordGeodetic object

Examples

Constructing and using a PyCoordGeodetic object is straightforward:

>>> from cysgp4 import PyCoordGeodetic

>>> lon_deg, lat_deg = 6.88375, 50.525
>>> alt_km = 0.366
>>> geo = PyCoordGeodetic(lon_deg, lat_deg, alt_km)
>>> geo
<PyCoordGeodetic: 6.8838d, 50.5250d, 0.3660km>

>>> # Access is also possible via properties, e.g.:
>>> geo.lon
6.88375
>>> geo.alt = 0.4

Attributes Summary

alt

Geographic altitude [km] (see also Class documentation).

ecef

ECEF [km] (Earth-centered, Earth-fixed frame; x, y, z).

lat

Geographic latitude [deg] (see also Class documentation).

lon

Geographic longitude [deg] (see also Class documentation).

Attributes Documentation

alt#

Geographic altitude [km] (see also Class documentation).

ecef#

ECEF [km] (Earth-centered, Earth-fixed frame; x, y, z).

lat#

Geographic latitude [deg] (see also Class documentation).

lon#

Geographic longitude [deg] (see also Class documentation).