Struct mwalib::CoarseChannel
source · [−]pub struct CoarseChannel {
pub corr_chan_number: usize,
pub rec_chan_number: usize,
pub gpubox_number: usize,
pub chan_width_hz: u32,
pub chan_start_hz: u32,
pub chan_centre_hz: u32,
pub chan_end_hz: u32,
}
Expand description
This is a struct for our coarse channels
Fields
corr_chan_number: usize
Correlator channel is 0 indexed (0..N-1)
rec_chan_number: usize
Receiver channel is 0-255 in the RRI recivers
gpubox_number: usize
gpubox channel number This is better described as the identifier which would be in the filename of visibility files Legacy e.g. obsid_datetime_gpuboxXX_00 v2 e.g. obsid_datetime_gpuboxXXX_00
chan_width_hz: u32
Width of a coarse channel in Hz
chan_start_hz: u32
Starting frequency of coarse channel in Hz
chan_centre_hz: u32
Centre frequency of coarse channel in Hz
chan_end_hz: u32
Ending frequency of coarse channel in Hz
Implementations
Calculate the centre frequency of each fine channel of this coarse channel.
Arguments
-
mwa_version
- The version of the MWA is in use. -
coarse_channels
- Vector of populated Coarse Channels. -
fine_chan_width_hz
- Fine channel width in Hz. -
num_fine_chans_per_coarse
- Number of fine channels per coarse channel.
Returns
- The centre frequency of the first fine channel of the coarse channel.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CoarseChannel
impl Send for CoarseChannel
impl Sync for CoarseChannel
impl Unpin for CoarseChannel
impl UnwindSafe for CoarseChannel
Blanket Implementations
Mutably borrows from an owned value. Read more