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§
Sourcefn compute(
&self,
scan: &Scan,
fields: &[SweepField],
coord_system: &RadarCoordinateSystem,
output_extent: &GeoExtent,
output_resolution: (usize, usize),
) -> Result<CartesianField>
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 elevationcoord_system— Radar coordinate system for geographic projectionoutput_extent— Geographic extent of the output gridoutput_resolution— (width, height) of the output grid in cells