def metar(wxdata: MetarData, units: Units) -> MetarTrans:
    """
    Translate the results of metar.parse

    Keys: Wind, Visibility, Clouds, Temperature, Dewpoint, Altimeter, Other
    """
    translations = shared(wxdata, units)
    translations['wind'] = wind(wxdata.wind_direction, wxdata.wind_speed,
                                wxdata.wind_gust, wxdata.wind_variable_direction,
                                units.wind_speed)
    translations['temperature'] = temperature(wxdata.temperature, units.temperature)
    translations['dewpoint'] = temperature(wxdata.dewpoint, units.temperature)
    translations['remarks'] = remarks.translate(wxdata.remarks)  # type: ignore
    return MetarTrans(**translations)
def metar ( wxdata : MetarData , units : Units ) -> MetarTrans : translations = shared ( wxdata , units ) translations [ 'wind' ] = wind ( wxdata . wind_direction , wxdata . wind_speed , wxdata . wind_gust , wxdata . wind_variable_direction , units . wind_speed ) translations [ 'temperature' ] = temperature ( wxdata . temperature , units . temperature ) translations [ 'dewpoint' ] = temperature ( wxdata . dewpoint , units . temperature ) translations [ 'remarks' ] = remarks . translate ( wxdata . remarks ) return MetarTrans ( ** translations )
Translate the results of metar.parse

    Keys: Wind, Visibility, Clouds, Temperature, Dewpoint, Altimeter, Other