pub fn render_radials_default(
radials: &[Radial],
product: Product,
options: &RenderOptions,
) -> Result<RgbaImage>Expand description
Renders radar radials using the default color scale for the product.
This is a convenience function that automatically selects an appropriate color scale based on the product type, using standard meteorological conventions.
§Arguments
radials- Slice of radials to render (typically from a single sweep)product- The radar product (moment type) to visualizeoptions- Rendering options (size, background, etc.)
§Errors
Returns an error if:
- No radials are provided
- The requested product is not present in the radials
§Example
ⓘ
use nexrad_render::{render_radials_default, Product, RenderOptions};
let options = RenderOptions::new(800, 800);
let image = render_radials_default(
sweep.radials(),
Product::Velocity,
&options,
).unwrap();
image.save("velocity.png").unwrap();