Table of Contents

Class SeaTemperatureStyle

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

The sea surface temperature (sea.temperature) as a colour fill in 1 °C bands from 0 °C to 30 °C, with a band below and a band above. On by default.

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

Remarks

One-degree bands show the fronts mariners read SST for: the Gulf Stream's north wall, eddies and upwelling edges. The bands are fixed, so the same colour means the same temperature on every chart and in every dataset.

The field is stored in kelvin (Kelvin); the bands are defined and labelled in degrees Celsius. Colours are the diverging ramp of WeatherPalette, drawn at FillOpacity. SST is a sea quantity, so the fill is clipped to water when an S-101 chart is loaded (ClipToWater).

Constructors

SeaTemperatureStyle()

Creates the style, with the Day palette active.

public SeaTemperatureStyle()

Fields

CelsiusZero

0 °C in kelvin.

public const double CelsiusZero = 273.15

Field Value

double

Key

The sub-layer key, "weather.sea.temperature".

public const string Key = "weather.sea.temperature"

Field Value

string

Properties

Bands

The bands, coldest first, in kelvin.

public static IReadOnlyList<WeatherBand> Bands { get; }

Property Value

IReadOnlyList<WeatherBand>

BoundariesCelsius

The band boundaries in degrees Celsius, lowest first: 0, 1, … 30.

public static IReadOnlyList<double> BoundariesCelsius { get; }

Property Value

IReadOnlyList<double>

Methods

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

ToCelsius(double)

Converts a temperature in kelvin to degrees Celsius.

public static double ToCelsius(double kelvin)

Parameters

kelvin double

The temperature in kelvin.

Returns

double