[][src]Function sounding_analysis::check_precip_type_intensity

pub fn check_precip_type_intensity<S1, S2, V>(
    precip_type: PrecipType,
    hourly_precipitation: Option<S1>,
    convective_precipitation: Option<S2>,
    visibility: Option<V>
) -> PrecipType where
    S1: Into<Mm>,
    S2: Into<Mm>,
    V: Into<StatuteMiles>, 

Given a PrecipType and potentially hourly precipitation, hourly convective precipitation, and visibility, make a best effor to correct the weather type code, or PrecipType.

The adjustments are based on the definition of light, moderate, and heavy under the rain entry in the American Meteorological Society Glossary of Meteorology, and if the original PrecipType is a snow type and visibility information is available it is based off the visibility.

This function is not exhuastive, but it is a best effort attempt to handle the most common precipitation types: rain, snow, freezing rain, ice pellets, and mixtures of these. 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.