ics.compute_centers_for_binary#

ics.compute_centers_for_binary(center, d, b, a=0.0)[source]#

Given a common center and distance parameters, calculate the central positions of two clusters.

First, the separation along the x-direction is determined by:

sep_x = sqrt(d**2-b**2-a**2)

where d is the distance between the two clusters, b is the impact parameter in the y-direction, and a is the impact parameter in the z-direction. So the resulting centers are calculated as:

center1 = [center-0.5*sep_x, center-0.5*b, center-0.5*a] center2 = [center+0.5*sep_x, center+0.5*b, center+0.5*a]

Parameters:
  • center (array-like) – The center from which the distance parameters for the two clusters will be calculated.

  • d (float) – The distance between the two clusters.

  • b (float) – The impact parameter in the y-direction, in kpc.

  • a (float, optional) – The impact parameter in the z-direction, in kpc. Default: 0.0