Skip to main content

ScanDerivedProduct

Trait ScanDerivedProduct 

Source
pub trait ScanDerivedProduct {
    // Required methods
    fn name(&self) -> &str;
    fn compute(
        &self,
        scan: &Scan,
        fields: &[SweepField],
        coord_system: &RadarCoordinateSystem,
        output_extent: &GeoExtent,
        output_resolution: (usize, usize),
    ) -> Result<CartesianField>;
}
Expand description

Produces a CartesianField from a full scan.

This trait is for derived products that combine data from multiple elevations into a single geographic surface, such as composite reflectivity, echo tops, and vertically integrated liquid (VIL).

Required Methods§

Source

fn name(&self) -> &str

A human-readable name for this product.

Source

fn compute( &self, scan: &Scan, fields: &[SweepField], coord_system: &RadarCoordinateSystem, output_extent: &GeoExtent, output_resolution: (usize, usize), ) -> Result<CartesianField>

Compute the derived product from the scan.

§Parameters
  • scan — Scan metadata (site info, VCP, etc.)
  • fields — Sweep fields for the relevant product, one per elevation
  • coord_system — Radar coordinate system for geographic projection
  • output_extent — Geographic extent of the output grid
  • output_resolution — (width, height) of the output grid in cells

Implementors§