Table of Contents

Class WaterLevelStationSample

Namespace
EncDotNet.S100.Datasets.Pipelines.Query
Assembly
EncDotNet.S100.Datasets.Pipelines.dll

S-104 water level sample read from a dcf8 ("time series at fixed stations") dataset — picks the nearest station to the requested position and the nearest time step within that station's series.

public sealed record WaterLevelStationSample : SampledValue, IEquatable<SampledValue>, IEquatable<WaterLevelStationSample>
Inheritance
WaterLevelStationSample
Implements
Inherited Members

Constructors

WaterLevelStationSample(string, double, double, string, DateTime, DateTimeOffset?, double, double)

S-104 water level sample read from a dcf8 ("time series at fixed stations") dataset — picks the nearest station to the requested position and the nearest time step within that station's series.

public WaterLevelStationSample(string StationId, double StationDistanceMetres, double WaterLevelHeight, string Trend, DateTime SampleTime, DateTimeOffset? RequestedTime, double StationLatitude, double StationLongitude)

Parameters

StationId string

Reporting station identifier (S-104 stationIdentification).

StationDistanceMetres double

Great-circle distance from requested point to the station, metres.

WaterLevelHeight double

Water level height in metres relative to the vertical datum.

Trend string

Decoded S-104 trend (see WaterLevelSample).

SampleTime DateTime

Actual time step (UTC) selected for this sample.

RequestedTime DateTimeOffset?

The time the caller asked for, or null if unspecified.

StationLatitude double

Latitude of the matched station.

StationLongitude double

Longitude of the matched station.

Properties

RequestedTime

The time the caller asked for, or null if unspecified.

public DateTimeOffset? RequestedTime { get; init; }

Property Value

DateTimeOffset?

SampleTime

Actual time step (UTC) selected for this sample.

public DateTime SampleTime { get; init; }

Property Value

DateTime

StationDistanceMetres

Great-circle distance from requested point to the station, metres.

public double StationDistanceMetres { get; init; }

Property Value

double

StationId

Reporting station identifier (S-104 stationIdentification).

public string StationId { get; init; }

Property Value

string

StationLatitude

Latitude of the matched station.

public double StationLatitude { get; init; }

Property Value

double

StationLongitude

Longitude of the matched station.

public double StationLongitude { get; init; }

Property Value

double

Trend

Decoded S-104 trend (see WaterLevelSample).

public string Trend { get; init; }

Property Value

string

WaterLevelHeight

Water level height in metres relative to the vertical datum.

public double WaterLevelHeight { get; init; }

Property Value

double

Methods

GetFields()

The sampled values with their quantities and units, in a fixed order per product. A method rather than a property so the typed variants' JSON is unchanged.

public override IReadOnlyList<SampledField> GetFields()

Returns

IReadOnlyList<SampledField>