Other Functions

Contents

Index

Other Functions

Coordinate System Transformations

PlateKinematics.cart2sphFunction
cart2sph(x::Float64, y::Float64, z::Float64)
cart2sph(x::Array{N}, y::Array{N}, z::Array{N}) where {N<:Float64}

Transform Cartesian coordinates into Spherical coordinates. Both input and outputs are expressed in degrees.

source
PlateKinematics.sph2cartFunction
sph2cart(lon_deg::Float64, lat_deg::Float64, mag=1::Float64)
sph2cart(lon_deg::Array{N}, lat_deg::Array{N}, mag::Array{N}) where {N<:Float64}
sph2cart(lon_deg::Array{N}, lat_deg::Array{N}) where {N<:Float64}

Transform Spherical coordinate(s) into Cartesian coordinate(s). Both input and outputs are expressed in degrees.

source

Finite Rotation Transformations

PlateKinematics.ToFRsFunction
ToFRs(FRc::FiniteRotCart)
ToFRs(FRcArray::Array{T}) where {T<:FiniteRotCart}
ToFRs(EA::EulerAngles)
ToFRs(EA::Array{T}) where {T<:EulerAngles}

Return a Finite Rotation in Spherical coordinates (::FiniteRotSph), expressed in degrees.

source
ToFRs(MTX::Array{N, 3}, time=nothing::Union{Nothing, N}) where {N<:Float64}

Convert an array of Rotation Matrices MTX to an array of Finite Rotations (::FiniteRotSph), expressed in degrees. The :Time field may be passed with the argument time.

source
PlateKinematics.ToFRcFunction
ToFRc(FRs::FiniteRotSph)
ToFRc(FRsArray::Array{T}) where {T<:FiniteRotSph}

Return a Finite Rotation in Cartesian coordinates (::FiniteRotCart), expressed in degrees.

source
PlateKinematics.ToRotationMatrixFunction
ToRotationMatrix(FRs::FiniteRotSph)
ToRotationMatrix(FRsArray::Array{T}) where {T<:FiniteRotSph}
ToRotationMatrix(EA::Array{T}) where {T<:EulerAngles}
ToRotationMatrix(EAx::Array{N, 1}, EAy::Array{N, 1}, EAz::Array{N, 1}) where {N<:Float64}

Return a Rotation Matrix (3x3 Array) expressed in radians.

source
PlateKinematics.ToEulerAnglesFunction
ToEulerAngles(FRs::FiniteRotSph)
ToEulerAngles(FRsArray::Array{T}) where {T<:FiniteRotSph}

Return the set of Euler angles (::EulerAngles) from a Finite Rotation.

source

Euler Vector Transformations

PlateKinematics.ToEVsFunction
ToEVs(EVc::EulerVectorCart)
ToEVs(EVcArray::Array{T}) where {T<:EulerVectorSph}
ToEVs(
    X::Array{N, 1}, Y::Array{N, 1}, Z::Array{N, 1}, 
    timeRange=nothing::Union{Nothing, Matrix{N}}) where {N<:Float64}

Return an Euler Vector in Spherical coordinates (::EulerVectorSph), with magnitude expressed in degrees/Myr.

source
PlateKinematics.ToEVcFunction
ToEVc(EVs::EulerVectorSph)
ToEVc(EVsArray::Array{T}) where {T<:EulerVectorSph}

Return an Euler Vector in Cartesian coordinates (::EulerVectorCart), expressed in degrees/Myr.

source