pub struct GenericDataBlockHeader {
pub data_block_id: DataBlockId,
pub reserved: u32,
pub number_of_data_moment_gates: u16,
pub data_moment_range: u16,
pub data_moment_range_sample_interval: u16,
pub tover: u16,
pub snr_threshold: u16,
pub control_flags: u8,
pub data_word_size: u8,
pub scale: f32,
pub offset: f32,
}Expand description
A generic data moment block’s decoded header.
Fields§
§data_block_id: DataBlockIdData block identifier.
reserved: u32Reserved.
number_of_data_moment_gates: u16Number of data moment gates for current radial, from 0 to 1840.
data_moment_range: u16Range to center of first range gate in 0.000-scaled kilometers.
data_moment_range_sample_interval: u16Size of data moment sample interval in 0.000-scaled kilometers from 0.25 to 4.0.
tover: u16Threshold parameter specifying the minimum difference in echo power between two resolution gates in dB for them to not be labeled as “overlayed”.
snr_threshold: u16Signal-to-noise ratio threshold for valid data from -12 to 20 dB.
control_flags: u8Flags indicating special control features.
Flags: 0 = None 1 = Recombined azimuthal radials 2 = Recombined range gates 3 = Recombined radials and range gates to legacy resolution
data_word_size: u8Number of bits (8 or 16) used for storing data for each data moment gate.
scale: f32Scale factor for converting data moments to floating-point representation.
offset: f32Offset value for converting data moments to floating-point representation.
Implementations§
Source§impl GenericDataBlockHeader
impl GenericDataBlockHeader
Sourcepub fn data_moment_range(&self) -> Length
pub fn data_moment_range(&self) -> Length
Range to center of first range gate.
Sourcepub fn data_moment_range_sample_interval(&self) -> Length
pub fn data_moment_range_sample_interval(&self) -> Length
Size of data moment sample interval.
Sourcepub fn control_flags(&self) -> ControlFlags
pub fn control_flags(&self) -> ControlFlags
Flags indicating special control features.
Sourcepub fn moment_size(&self) -> Information
pub fn moment_size(&self) -> Information
Size of the data moment block in bytes.
Trait Implementations§
Source§impl Clone for GenericDataBlockHeader
impl Clone for GenericDataBlockHeader
Source§fn clone(&self) -> GenericDataBlockHeader
fn clone(&self) -> GenericDataBlockHeader
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GenericDataBlockHeader
Available on crate feature uom only.
impl Debug for GenericDataBlockHeader
uom only.Source§impl<'de> Deserialize<'de> for GenericDataBlockHeader
impl<'de> Deserialize<'de> for GenericDataBlockHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for GenericDataBlockHeader
impl PartialEq for GenericDataBlockHeader
Source§fn eq(&self, other: &GenericDataBlockHeader) -> bool
fn eq(&self, other: &GenericDataBlockHeader) -> bool
self and other values to be equal, and is used by ==.