class CrystalMetarParser::Wind

Defined in:

crystal_metar_parser/metar/wind.cr

Constant Summary

KILOMETERS_PER_HOUR_TO_METERS_PER_SECOND = 1.0 / 3.6
KNOTS_TO_METERS_PER_SECOND = 1.85 / 3.6

Constructors

Instance Method Summary

Instance methods inherited from class CrystalMetarParser::Base

decode_split(s) decode_split, post_process post_process, reset reset

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def decode_split(s) #

[View source]
def decode_wind(s) #

Wind parameters in meters per second


[View source]
def decode_wind_variable(s) #

Variable wind direction


[View source]
def direction : Int32 #

[View source]
def kmh #

Kilometers per hour


[View source]
def knots #

Knots


[View source]
def mps #

Meters per second


[View source]
def post_process #

[View source]
def recalculate_winds #

Calculate wind parameters, some metar string has multiple winds recorded


[View source]
def speed : Float64 #

[View source]
def speed_kmh #

Wind speed in KM/H


[View source]
def speed_knots #

Wind speed in knots


[View source]