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, phi : Quantity

Angular direction of the velocity.

Returns:
dx, dy, dz : Quantity

Displacement in x, y, z direction

vx, vy, vz : Quantity

Velocity in x, y, z direction