nenupy.io.tf_utils.sort_beam_edges

nenupy.io.tf_utils.sort_beam_edges(beam_array, n_channels)[source]

Find out where in the frequency axis a beam starts and end.

Parameters:
  • beam_array (ndarray) – Array of beams.

  • n_channels (int) – Number of channels per subband.

Returns:

Dictionnary of keys/values beam_index \(\leftrightarrow\) (freq_axis_start_idx, freq_axis_end_idx)

Return type:

dict