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:
rhofloat

Offset coordinate.

thetafloat

Angle coordinate in degrees.

sztuple of int

Size of image in (ny, nx). Streak endpoints will be truncated at the images edges.

Returns:
posarray

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