Class WeatherPalette
The colours of the weather styles: the band fills of WaveHeightStyle, WindSpeedStyle and SeaTemperatureStyle, and the inks of the wind barbs, wave arrows, pressure isobars and isotherms, each with a Day, Dusk and Night value.
public static class WeatherPalette
- Inheritance
-
WeatherPalette
- Inherited Members
Remarks
No weather format has a portrayal catalogue, so these are SoundCharts' own colours. They keep clear of the hues S-101 already uses: blues and greens (depth areas), red and amber (danger), magenta (mariner information) and the S-104 teal. Wave height is a violet ramp (OKLCH hue 295); wind speed, off by default, is a low-chroma sepia ramp (OKLCH hue 55), well short of the saturated amber of a danger colour. Both are sequential: in Day the higher bands are darker, in Dusk and Night they are lighter against the dark chart. Sea surface temperature is diverging, as temperature maps conventionally are: slate blue (OKLCH hue 262) for the coldest water, paling to near white at 15 °C, then pale yellow (hue 98) through orange to brick (hue 30) for the warmest. The warm side turns in hue as well as lightness, so each degree between 15 °C and 30 °C, where the Gulf Stream and other fronts mariners look for lie, is a visibly different colour. Lightness runs from the ends to the middle: lightest at 15 °C by day, darkest at dusk and night. This ramp is the exception to the hue rule above: SST is read by its colour convention, and the fill is drawn at half opacity, so its orange and brick don't stand alone as danger colours. The fills are drawn at FillOpacity, so the chart under them stays readable.
Every Night colour stays under relative luminance 0.2, as the S-104 style's do.
The current arrows (CurrentArrowStyle) don't follow these rules: they take S-111's own speed band colours, so a current reads the same in a model as in an S-111 dataset.
Fields
BarbInkToken
Colour token of the wind barb ink (staff, feathers, station dot and calm circle).
public const string BarbInkToken = "WXBARB"
Field Value
CurrentOutlineToken
Colour token of the outline of the current arrows (CurrentArrowStyle).
public const string CurrentOutlineToken = "WXCUROUT"
Field Value
CurrentTokenPrefix
The colour token prefix of the current speed bands, followed by the band number: WXCUR1 to WXCUR9.
public const string CurrentTokenPrefix = "WXCUR"
Field Value
IsobarHaloToken
Colour token of the halo under the isobar labels: the chart's background.
public const string IsobarHaloToken = "WXISOHALO"
Field Value
IsobarInkToken
Colour token of the pressure isobars and their labels (PressureIsobarStyle).
public const string IsobarInkToken = "WXISOBAR"
Field Value
IsothermInkToken
Colour token of the isotherms and their labels (SeaTemperatureIsothermStyle).
public const string IsothermInkToken = "WXISOTH"
Field Value
SeaTemperatureTokenPrefix
The colour token prefix of the sea surface temperature bands, followed by the band number: WXSST01 to WXSST32.
public const string SeaTemperatureTokenPrefix = "WXSST"
Field Value
WaveArrowToken
Colour token of the wave direction arrow.
public const string WaveArrowToken = "WXWAVE"
Field Value
WaveHeightTokenPrefix
The colour token prefix of the wave height bands, followed by the band number: WXHS01 to WXHS15.
public const string WaveHeightTokenPrefix = "WXHS"
Field Value
WindSpeedTokenPrefix
The colour token prefix of the Beaufort wind speed bands, followed by the force: WXBF00 to WXBF12.
public const string WindSpeedTokenPrefix = "WXBF"
Field Value
Properties
CurrentBandCount
The number of current speed bands: 9, as S-111's.
public static int CurrentBandCount { get; }
Property Value
Palette
The weather colours: BarbInkToken, WaveArrowToken, IsobarInkToken, IsobarHaloToken, IsothermInkToken, the wave height bands (WaveHeightToken(int)), the Beaufort bands (WindSpeedToken(int)), the sea surface temperature bands (SeaTemperatureToken(int)), and the current speed bands (CurrentToken(int)) with CurrentOutlineToken.
public static ApplicationPalette Palette { get; }
Property Value
SeaTemperatureBandCount
The number of sea surface temperature bands: 32.
public static int SeaTemperatureBandCount { get; }
Property Value
WaveHeightBandCount
The number of wave height bands: 15.
public static int WaveHeightBandCount { get; }
Property Value
WindSpeedBandCount
The number of Beaufort bands, force 0 to 12: 13.
public static int WindSpeedBandCount { get; }
Property Value
Methods
CurrentToken(int)
The colour token of current speed band band, 1 (slowest) to CurrentBandCount.
public static string CurrentToken(int band)
Parameters
bandintThe band number.
Returns
SeaTemperatureToken(int)
The colour token of sea surface temperature band band, 1 (coldest) to SeaTemperatureBandCount.
public static string SeaTemperatureToken(int band)
Parameters
bandintThe band number.
Returns
WaveHeightToken(int)
The colour token of wave height band band, 1 (lowest) to WaveHeightBandCount.
public static string WaveHeightToken(int band)
Parameters
bandintThe band number.
Returns
WindSpeedToken(int)
The colour token of Beaufort force force, 0 to 12.
public static string WindSpeedToken(int force)
Parameters
forceintThe Beaufort force.