rot_sum

acstools.utils_findsat_mrt.rot_sum(image, angle, return_length)

Rotates and image by a designated angle and sums the values in each column.

Parameters:
  • image (ndarray) – Image to be rotated and summed.

  • angle (float) – Angle by which to rotate the input image (radians).

  • return_length (bool) – Set to the return the number of valid pixels in each column.

Returns:

  • medarr (ndarray) – The resulting sum in each column.

  • length (ndarray, optional) – The number of valid pixels in each column. This is only returned if return_length is True.