motion_since_birth#

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

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

Parameters:
vQuantity

Absolute value of the velocity.

ageQuantity

Age of the source.

theta, phiQuantity

Angular direction of the velocity.

Returns:
dx, dy, dzQuantity

Displacement in x, y, z direction.

vx, vy, vzQuantity

Velocity in x, y, z direction.