extract_mid

ska_sdp_exec_swiftly.fourier_transform.fourier_algorithm.extract_mid(a, n, axis)[source]

Extract a section from middle of a map (array) along a given axis. This is the reverse operation to pad.

Parameters:
  • a – numpy array from which to extract

  • n – size of section

  • axis – axis along which to extract (int: 0, 1)

Returns:

extracted numpy array