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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Implements fmt::Debug for CoarseChannel struct

Arguments

  • f - A fmt::Formatter

Returns

  • fmt::Result - Result of this method

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.