evaluate_channel_profile#

caput.util.pfb.PFB.evaluate_channel_profile(channel_width_frac: numpy.typing.ArrayLike | None = None, norm: bool = True) numpy.ndarray[numpy.complex128][source]#

Evaluate the profile of a single frequency channel.

On the first call, this method computes the profile on a dense set of frequencies and constructs and interpolating function. This interpolating function is evaluated on subsequent calls.

Note that this is the voltage profile; the absolute value of the output should be squared to obtain the profile corresponding to a visibility.

Parameters:
channel_width_fracarray_like | None, optional

Array of frequencies at which to evaluate channel profile, as a fraction of the channel width and centered at the center of the channel. (For example, 0 is the center of the channel and [-0.5, 0.5] are the channel edges.)

normbool, optional

Normalize the profile to its peak (real-part) value. Default: True.

Returns:
profilearray_like

The channel profile.