make_subgrid_and_facet_from_sources

ska_sdp_exec_swiftly.fourier_transform.fourier_algorithm.make_subgrid_and_facet_from_sources(sources, base_arrays, use_dask=False)[source]

Calculate the actual subgrids and facets from a list of specific sources. Dask.delayed compatible version Currently only works for 2D.

Parameters:
  • sources – List of source positions

  • base_arrays – BaseArrays class object

  • use_dask – run function with dask.delayed or not?

Returns:

tuple of two numpy.ndarray (subgrid, facet) if use_dask=False, else, the dask graph of the arrays