Class WeatherLevel
The vertical level of a weather parameter, for example 10 m above the ground for wind, or mean sea level for pressure.
public sealed record WeatherLevel : IEquatable<WeatherLevel>
- Inheritance
-
WeatherLevel
- Implements
- Inherited Members
Properties
Description
A short description for display, for example "10 m above ground".
public string Description { get; }
Property Value
Height
The height for HeightAboveGround; otherwise null.
public Length? Height { get; }
Property Value
Kind
The kind of level.
public WeatherLevelKind Kind { get; }
Property Value
MeanSeaLevel
Mean sea level.
public static WeatherLevel MeanSeaLevel { get; }
Property Value
Surface
The ground or water surface.
public static WeatherLevel Surface { get; }
Property Value
Methods
AboveGround(Length)
A height above the ground or sea surface.
public static WeatherLevel AboveGround(Length height)
Parameters
heightLengthThe height.
Returns
Other(string)
A level the model doesn't classify, described by the reader.
public static WeatherLevel Other(string description)
Parameters
descriptionstringThe reader's description of the level.
Returns
Exceptions
- ArgumentException
descriptionis empty.
ToString()
Returns Description.
public override string ToString()