Skip to main content

Product

Enum Product 

Source
pub enum Product {
    Reflectivity,
    Velocity,
    SpectrumWidth,
    DifferentialReflectivity,
    DifferentialPhase,
    CorrelationCoefficient,
    ClutterFilterPower,
}
Expand description

Identifies a radar data product (moment type).

Each product corresponds to a different type of moment data captured by the radar. This enum is shared across the entire crate ecosystem — it identifies which moment field to extract from a radial, which processing algorithm to apply, or which color scale to use for rendering.

Variants§

§

Reflectivity

Base reflectivity (dBZ). Measures the intensity of precipitation.

§

Velocity

Radial velocity (m/s). Measures motion toward or away from the radar.

§

SpectrumWidth

Spectrum width (m/s). Measures turbulence within the radar beam.

§

DifferentialReflectivity

Differential reflectivity (dB). Compares horizontal and vertical reflectivity.

§

DifferentialPhase

Differential phase (degrees). Phase difference between polarizations.

§

CorrelationCoefficient

Correlation coefficient. Correlation between polarizations (0-1).

§

ClutterFilterPower

Clutter filter power (CFP). Difference between clutter-filtered and unfiltered reflectivity.

Implementations§

Source§

impl Product

Source

pub fn moment_data<'a>(&self, radial: &'a Radial) -> Option<&'a MomentData>

Returns the moment data for this product from a radial, if present.

For all products except Product::ClutterFilterPower, this returns the standard MomentData. For CFP, use cfp_moment_data instead.

Source

pub fn cfp_moment_data<'a>( &self, radial: &'a Radial, ) -> Option<&'a CFPMomentData>

Returns the CFP moment data from a radial, if this product is Product::ClutterFilterPower and the data is present.

Source

pub fn value_range(&self) -> (f32, f32)

Returns the typical value range (min, max) for this product.

These ranges cover the expected data values for each product type and are used for color mapping and normalization.

Source

pub fn unit(&self) -> &'static str

Returns the standard unit string for this product.

Source

pub fn label(&self) -> &'static str

Returns a human-readable label for this product.

Trait Implementations§

Source§

impl Clone for Product

Source§

fn clone(&self) -> Product

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Product

Source§

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

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

impl Hash for Product

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Product

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 Copy for Product

Source§

impl Eq for Product

Source§

impl StructuralPartialEq for Product

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> 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.