streak_endpoints

acstools.utils_findsat_mrt.streak_endpoints(rho, theta, sz, plot=False)

Get endpoints of a trail using rho and theta coordinates and image size.

Parameters:
  • rho (float) – Offset coordinate.

  • theta (float) – Angle coordinate in degrees.

  • sz (tuple of int) – Size of image in (ny, nx). Streak endpoints will be truncated at the images edges.

Returns:

pos – Array with form [p0, p1] where each p is (x, y), the x and y coordinates of each end.

Return type:

array