[][src]Function sounding_analysis::adjust_precip_type_intensity

pub fn adjust_precip_type_intensity<L: Into<Mm>>(
    precip_type: PrecipType,
    hourly_precipitation: L
) -> PrecipType
Deprecated

Given a PrecipType and an hourly precipitation amount, adjust the intensity.

The adjustments are based on the definition of light, moderate, and heavy under the rain entry in the American Meteorological Society Glossary of Meteorology.

This function is not exhuastive, but it is a best effort attempt to handle the most common precipitation types: rain, snow, and freezing rain. It only works with the light intensity level for these types since that is the default return type from the algorithms provided here which have no way of knowing intensity. If a weather code provided by some other provider has some more information, it should be used rather than adjusted by this routine.

Intensity for snow is actually determined by visibility, but that information is often not available, so it is treated the same as rain which will probably cause a low bias in the intensity of snow.