radial_distances

mcalf.utils.radial_distances(n_cols, n_rows)[source]

Generates a 2D array of specified shape of radial distances from the centre

Parameters
  • n_cols (int) – Number of columns.

  • n_rows (int) – Number of rows.

Returns

array – Array of radial distances.

Return type

ndarray of shape (n_rows, n_cols)

See also

genmask()

Generates a circular mask