compute_channel_profile#
- caput.util.pfb.PFB.compute_channel_profile(norm: bool = True) tuple[numpy.ndarray[numpy.float64], numpy.ndarray[numpy.complex128]][source]#
Compute the profile of a single frequency channel.
This method computes the profile at a natural set of frequencies relative to the channel center. The output is suitable for input into separate code that constructs an interpolating function. If you plan to evaluate the same profile many times, use evaluate_channel_profile instead, since it will automatically construct an interpolating function and then evaluate it for 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:
- normbool, optional
Normalize the profile to its peak (real-part) value. Default: True.
- Returns:
- rel_freq
np.ndarray Array of frequencies at which the profile was computed, as fractions of the channel width and relative to the center of the channel. (For example, 0 is the center of the channel and [-0.5, 0.5] are the channel edges.)
- w
np.ndarray Channel profile evaluated at rel_freq.
- rel_freq