Table of Contents

Class WeatherLevel

Namespace
EncDotNet.S100.Datasets.Weather
Assembly
EncDotNet.S100.Datasets.Weather.dll

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

string

Height

The height for HeightAboveGround; otherwise null.

public Length? Height { get; }

Property Value

Length?

Kind

The kind of level.

public WeatherLevelKind Kind { get; }

Property Value

WeatherLevelKind

MeanSeaLevel

Mean sea level.

public static WeatherLevel MeanSeaLevel { get; }

Property Value

WeatherLevel

Surface

The ground or water surface.

public static WeatherLevel Surface { get; }

Property Value

WeatherLevel

Methods

AboveGround(Length)

A height above the ground or sea surface.

public static WeatherLevel AboveGround(Length height)

Parameters

height Length

The height.

Returns

WeatherLevel

Other(string)

A level the model doesn't classify, described by the reader.

public static WeatherLevel Other(string description)

Parameters

description string

The reader's description of the level.

Returns

WeatherLevel

Exceptions

ArgumentException

description is empty.

ToString()

Returns Description.

public override string ToString()

Returns

string