motion_since_birth

gammapy.utils.coordinates.motion_since_birth(v, age, theta, phi)[source]

Compute motion of a object with given velocity, direction and age.

Parameters:

v : Quantity

Absolute value of the velocity

age : Quantity

Age of the source.

theta : Quantity

Angular direction of the velocity.

phi : Quantity

Angular direction of the velocity.

Returns:

dx : Quantity

Displacement in x direction

dy : Quantity

Displacement in y direction

dz : Quantity

Displacement in z direction

vx : Quantity

Velocity in x direction

vy : Quantity

Velocity in y direction

vz : Quantity

Velocity in z direction