jord-1.0.0.0: Geographical Position Calculations

Copyright(c) 2020 Cedric Liegeois
LicenseBSD3
MaintainerCedric Liegeois <ofmooseandmen@yahoo.fr>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Data.Geo.Jord.Tx

Contents

Description

Coordinates transformation parameters.

Synopsis

transformation parameters.

data Tx a Source #

Coordinate transformation between 2 models (A & B).

Constructors

Tx 

Fields

inverseTx :: TxParams a => Tx a -> Tx a Source #

inverse transformation.

class TxParams a where Source #

class for transformation parameters.

Methods

idTxParams Source #

Arguments

:: a

identity transformation parameters, i.e. p T idTxParams = p.

inverseTxParams Source #

Arguments

:: a 
-> a

inverse transformation parameters.

data TxParams7 Source #

7-parameter transformation (Helmert); use txParams7 to construct.

data TxRates Source #

Transformation rates for the 15-parameter transformation (Helmert); use txRates to construct.

Instances
Show TxRates Source # 
Instance details

Defined in Data.Geo.Jord.Tx

data TxParams15 Source #

Epoch and 14-parameter transformation (Helmert).

txParams7 Source #

Arguments

:: (Double, Double, Double)

translation vector containing the three translations along the coordinate axes: tx, ty, tz in millimetres

-> Double

scale factor (unitless) expressed in parts per billion

-> (Double, Double, Double)

rotation matrix (orthogonal) consisting of the three axes rx, ry, rz in milliarcseconds

-> TxParams7 

7-parameter transformation (Helmert) from given translation vector, scale factor and rotation matrix.

txRates Source #

Arguments

:: (Double, Double, Double)

translation rate in millimetres per year.

-> Double

scale factor rate in part per billion per year.

-> (Double, Double, Double)

rotation rate in milliarcseconds per year.

-> TxRates 

rates of the 15-parameter translation (Helmert) from given translation rates, scale factor rate and rotation rates.

txParamsAt :: Epoch -> TxParams15 -> TxParams7 Source #

txParamsAt e tx15 returns the 7-parameter transformation corresponding to the 15-parameter transformation tx15 at epoch e.

transformation graph.

data TxGraph a Source #

Transformation graph: vertices are ModelId and edges are transformation parameters.

txGraph :: TxParams a => [Tx a] -> TxGraph a Source #

txGraph ts returns a transformation graph containing all given direct and inverse (i.e. for each Tx: txParams & inverseTxParams) transformations.

txParamsBetween :: TxParams a => ModelId -> ModelId -> TxGraph a -> [a] Source #

txParamsBetween m0 m1 g computes the ordered list of transformation parameters to be successively applied when transforming the coordinates of a position in model m0 to model m1. The returned list is empty, if either model is not in the graph (i.e. not a vertex) or if no such transformation exists (i.e. model m1 cannot be reached from model m0).

geocentric coordinate transformation

transformGeoc :: Vector3d -> TxParams7 -> Vector3d Source #

transformGeoc gc tx7 returns the geocentric coordinates resulting from applying the 7-parameter transformation tx7 to the geocentric coordinates represented by vector gc.