class CrystalMetarParser::Clouds

Defined in:

crystal_metar_parser/metar/clouds.cr

Constant Summary

CLOUD_BROKEN = ((6 * 100.0) / 8.0).round.to_i

Cloud level - broken

CLOUD_CLEAR = ((0 * 100.0) / 8.0).round.to_i

Cloud level - clear sky

CLOUD_FEW = ((1.5 * 100.0) / 8.0).round.to_i

Cloud level - few clouds

CLOUD_NOT_SIGN = ((0.5 * 100.0) / 8.0).round.to_i

Cloud level - not significant

CLOUD_OVERCAST = ((8 * 100.0) / 8.0).round.to_i

Cloud level - overcast

CLOUD_SCATTERED = ((3.5 * 100.0) / 8.0).round.to_i

Cloud level - scattered

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 clouds : Array(CrystalMetarParser::CloudElement) #

[View source]
def clouds_max : Int32 #

[View source]
def decode_split(s) #

[View source]
def post_process #

Calculate numeric description of clouds


[View source]