Class Visibility
- Namespace
- Cavok
- Assembly
- Cavok.dll
Prevailing visibility, in metres (0800, 9999) or statute miles (1 1/2SM).
public sealed record Visibility : IEquatable<Visibility>
- Inheritance
-
Visibility
- Implements
- Inherited Members
Properties
IsLessThan
True for "less than" (M1/4SM).
public bool IsLessThan { get; init; }
Property Value
IsMissing
True when the visibility is missing (////).
public bool IsMissing { get; init; }
Property Value
IsMoreThan
True for "more than" (P6SM).
public bool IsMoreThan { get; init; }
Property Value
IsTenKmOrMore
True for 9999: 10 km or more.
public bool IsTenKmOrMore { get; init; }
Property Value
Meters
Visibility in metres when reported in metres. 9999 is stored as 10000 with IsTenKmOrMore set.
public int? Meters { get; init; }
Property Value
- int?
Minimum
Minimum visibility with its direction (1500SW), if reported.
public MinimumVisibility? Minimum { get; init; }
Property Value
NoDirectionalVariation
True for NDV (no directional variation; automatic stations).
public bool NoDirectionalVariation { get; init; }
Property Value
StatuteMiles
Visibility in statute miles when reported in miles.
public double? StatuteMiles { get; init; }
Property Value
Methods
ToMeters()
The prevailing visibility in metres, converting statute miles.
public double? ToMeters()
Returns
- double?
Metres, or
nullwhen no prevailing visibility is known.