Skip to main content

GenericDataBlockHeader

Struct GenericDataBlockHeader 

Source
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: DataBlockId

Data block identifier.

§reserved: u32

Reserved.

§number_of_data_moment_gates: u16

Number of data moment gates for current radial, from 0 to 1840.

§data_moment_range: u16

Range to center of first range gate in 0.000-scaled kilometers.

§data_moment_range_sample_interval: u16

Size of data moment sample interval in 0.000-scaled kilometers from 0.25 to 4.0.

§tover: u16

Threshold parameter specifying the minimum difference in echo power between two resolution gates in dB for them to not be labeled as “overlayed”.

§snr_threshold: u16

Signal-to-noise ratio threshold for valid data from -12 to 20 dB.

§control_flags: u8

Flags 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: u8

Number of bits (8 or 16) used for storing data for each data moment gate.

§scale: f32

Scale factor for converting data moments to floating-point representation.

§offset: f32

Offset value for converting data moments to floating-point representation.

Implementations§

Source§

impl GenericDataBlockHeader

Source

pub fn data_moment_range(&self) -> Length

Range to center of first range gate.

Source

pub fn data_moment_range_sample_interval(&self) -> Length

Size of data moment sample interval.

Source

pub fn control_flags(&self) -> ControlFlags

Flags indicating special control features.

Source

pub fn moment_size(&self) -> Information

Size of the data moment block in bytes.

Trait Implementations§

Source§

impl Clone for GenericDataBlockHeader

Source§

fn clone(&self) -> GenericDataBlockHeader

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GenericDataBlockHeader

Available on crate feature uom only.
Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GenericDataBlockHeader

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for GenericDataBlockHeader

Source§

fn eq(&self, other: &GenericDataBlockHeader) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for GenericDataBlockHeader

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.