matvis.conversions.prepare_beam

matvis.conversions.prepare_beam(uvbeam: UVBeam, polarized: bool = False, use_feed: Literal['x', 'y'] = 'x') UVBeam[source]

Prepare an imput beam for either interpolation or simulation.

The point of this function is to take an arbitrary UVBeam (or AnalyticBeam) and do the necessary checks and conversions to convert it to a format that can be interpolated to an (l,m) grid, or passed to matvis. The output beam type is dependent on the input parameters polarized and use_feed.