Table of Contents

Class WindSpeedStyle

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

The 10 m wind speed (wind.speed) as a colour fill in Beaufort bands, force 0 to 12. Off by default: the barbs already carry the speed.

public sealed class WindSpeedStyle : WeatherCoverageStyle, ICoverageStyle
Inheritance
WindSpeedStyle
Implements
Inherited Members

Remarks

The bands start at the Beaufort scale's lower limits in knots (BeaufortLowerKnots): force 1 is 1–3 kn, force 2 is 4–6 kn and so on, and force 12 is 64 kn and higher. Between whole knots a value takes the higher force from its lower limit, so 3.6 kn is force 1 and 4 kn is force 2.

The bands are defined in knots and converted to metres per second, the unit wind.speed is stored in (whether the file stores it or the source derives it from U and V), so the field keeps one canonical unit for sampling and picking, and no second, knot-valued copy of the grid is made. Labels are in knots.

Constructors

WindSpeedStyle()

Creates the style, with the Day palette active.

public WindSpeedStyle()

Fields

Key

The sub-layer key, "weather.wind.speed".

public const string Key = "weather.wind.speed"

Field Value

string

Properties

Bands

The bands, force 0 first, in metres per second.

public static IReadOnlyList<WeatherBand> Bands { get; }

Property Value

IReadOnlyList<WeatherBand>

BeaufortLowerKnots

The lower limit of each Beaufort force from 0 to 12, in knots.

public static IReadOnlyList<int> BeaufortLowerKnots { get; }

Property Value

IReadOnlyList<int>

Methods

BeaufortForce(Speed)

The Beaufort force of a wind speed, 0 to 12.

public static int BeaufortForce(Speed speed)

Parameters

speed Speed

The speed.

Returns

int

ResolveColorScheme(MarinerSettings)

The colour bands of a fill, resolved against the active palette, or null for a symbol style.

public override CoverageColorScheme ResolveColorScheme(MarinerSettings settings)

Parameters

settings MarinerSettings

Unused: the weather bands don't depend on mariner settings.

Returns

CoverageColorScheme