Coordinates
The coordiantes module provides functionatiy for transforming between various body-fixed reference frame coordinate systems. In particular, geodetic and geocentric transformations are included. Topocentric transformations are also included.
SatelliteDynamics.sGEOCtoECEF
— FunctionConvert geocentric position to equivalent Earth-fixed position.
Arguments:
geoc::Array{<:Real, 1}
: Geocentric coordinates (lon, lat, altitude) [rad] / [deg]use_degrees:Bool
: Iftrue
interpret input as being in degrees.
Returns:
ecef::Array{<:Real, 1}
: Earth-fixed coordinates [m]
SatelliteDynamics.sECEFtoGEOC
— FunctionConvert Earth-fixed position to geocentric location.
Arguments:
ecef::Array{<:Real, 1}
: Earth-fixed coordinated [m]use_degrees:Bool
: Iftrue
returns result in units of degrees
Returns:
geoc
: Geocentric coordinates (lon, lat, altitude) [rad] / [deg]
SatelliteDynamics.sGEODtoECEF
— FunctionConvert geodetic position to equivalent Earth-fixed position.
Arguments:
geod::Array{<:Real, 1}
: Geodetic coordinates (lon, lat, altitude) [rad] / [deg]use_degrees:Bool
: Iftrue
interpret input as being in degrees.
Returns:
ecef::Array{<:Real, 1}
: Earth-fixed coordinates [m]
SatelliteDynamics.sECEFtoGEOD
— FunctionConvert geodetic coordinaties to Earth-fixed position
Arguments:
ecef::Array{<:Real, 1}
: Earth-fixed position [m]use_degrees:Bool
: Iftrue
returns result in units of degrees
Returns:
geod::Array{<:Real, 1}
: Geocentric coordinates (lon, lat, altitude) [rad] / [deg]
SatelliteDynamics.rECEFtoENZ
— FunctionCompute the rotation matrix from the Earth-fixed to the East-North-Up coorindate basis.
Arguments:
station_ecef::Array{<:Real, 1}
: Earth-fixed cartesian station coordinatesconversion::Bool
: Conversion type to use. Can be "geocentric" or "geodetic"
Returns:
E::Array{Real, 2}
: Topocentric rotation matrix
SatelliteDynamics.rENZtoECEF
— FunctionCompute the rotation matrix from the Earth-fixed to the South-East-Zenith coorindate basis.
Arguments:
station_ecef::Array{<:Real, 1}
: Earth-fixed cartesian station coordinatesconversion::Bool
: Conversion type to use. Can be "geocentric" or "geodetic"
Returns:
E::Array{Float64, 2}
: Topocentric rotation matrix
SatelliteDynamics.sECEFtoENZ
— FunctionCompute the coordinates of an object in the topocentric frame of an Earth-fixed frame
Arguments:
station_ecef::Array{<:Real, 1}
: Earth-fixed cartesian station coordinatesecef::Array{<:Real, 1}
: Coordinates of the object in Earth-fixed stationconversion::Bool
: Conversion type to use. Can be "geocentric" or "geodetic"
Returns:
E::Array{Float64, 2}
: Topocentric rotation matrix
SatelliteDynamics.sENZtoECEF
— FunctionCompute the coordinates of an object in the topocentric frame of an Earth-fixed frame
Arguments:
station_ecef::Array{<:Real, 1}
: Earth-fixed cartesian station coordinatessez::Array{<:Real, 1}
: SEZ coordinates of the objectconversion::Bool
: Conversion type to use. Can be "geocentric" or "geodetic"
Returns:
E::Array{Float64, 2}
: Topocentric rotation matrix
SatelliteDynamics.rECEFtoSEZ
— FunctionCompute the rotation matrix from the Earth-fixed to the South-East-Zenith coorindate basis.
Arguments:
station_ecef::Array{<:Real, 1}
: Earth-fixed cartesian station coordinatesconversion::Bool
: Conversion type to use. Can be "geocentric" or "geodetic"
Returns:
E::Array{Float64, 2}
: Topocentric rotation matrix
SatelliteDynamics.rSEZtoECEF
— FunctionCompute the rotation matrix from the Earth-fixed to the South-East-Zenith coorindate basis.
Arguments:
station_ecef::Array{<:Real, 1}
: Earth-fixed cartesian station coordinatesconversion::Bool
: Conversion type to use. Can be "geocentric" or "geodetic"
Returns:
E::Array{Float64, 2}
: Topocentric rotation matrix
SatelliteDynamics.sECEFtoSEZ
— FunctionCompute the coordinates of an object in the topocentric frame of an Earth-fixed frame
Arguments:
station_ecef::Array{<:Real, 1}
: Earth-fixed cartesian station coordinatesecef::Array{<:Real, 1}
: Coordinates of the object in Earth-fixed stationconversion::Bool
: Conversion type to use. Can be "geocentric" or "geodetic"
Returns:
E::Array{Float64, 2}
: Topocentric rotation matrix
SatelliteDynamics.sSEZtoECEF
— FunctionCompute the coordinates of an object in the topocentric frame of an Earth-fixed frame
Arguments:
station_ecef::Array{<:Real, 1}
: Earth-fixed cartesian station coordinatessez::Array{<:Real, 1}
: SEZ coordinates of the objectconversion::Bool
: Conversion type to use. Can be "geocentric" or "geodetic"
Returns:
E::Array{Float64, 2}
: Topocentric rotation matrix
SatelliteDynamics.sENZtoAZEL
— FunctionConvert East-North-Zenith topocentric state to azimuth, elevation, and range.
Arguments:
x::Array{<:Real, 1}
: East-North-Up stateuse_degrees:Bool
: Iftrue
returns result in units of degrees
Returns:
azel::Array{<:Real, 1}
: Azimuth, elevation and range [rad; rad; m]
SatelliteDynamics.sSEZtoAZEL
— FunctionConvert South-East-Zenith topocentric state to azimuth, elevation, and range.
Arguments:
x::Array{<:Real, 1}
: South-East-Zenith stateuse_degrees:Bool
: Iftrue
returns result in units of degrees
Returns:
azel::Array{<:Real, 1}
: Azimuth, elevation and range [rad; rad; m]