Class WaterLevelSample
S-104 water level sample at the nearest grid cell and time step.
public sealed record WaterLevelSample : SampledValue, IEquatable<SampledValue>, IEquatable<WaterLevelSample>
- Inheritance
-
WaterLevelSample
- Implements
- Inherited Members
Constructors
WaterLevelSample(double, string, DateTime, DateTimeOffset?, int, int, double, double)
S-104 water level sample at the nearest grid cell and time step.
public WaterLevelSample(double WaterLevelHeight, string Trend, DateTime SampleTime, DateTimeOffset? RequestedTime, int Row, int Column, double CellCentreLatitude, double CellCentreLongitude)
Parameters
WaterLevelHeightdoubleWater level height in metres relative to the vertical datum.
TrendstringDecoded S-104 trend (per S-104 §10.2.2:
0=unknown,1=decreasing,2=increasing,3=steady). When the raw value falls outside the spec-defined set the raw integer is surfaced as the string instead.SampleTimeDateTimeThe actual time step (UTC) selected for this sample.
RequestedTimeDateTimeOffset?The time the caller asked for, or
nullif unspecified.RowintRow index of the resolved cell in the source grid (0-based).
ColumnintColumn index of the resolved cell in the source grid (0-based).
CellCentreLatitudedoubleLatitude of the resolved cell centre.
CellCentreLongitudedoubleLongitude of the resolved cell centre.
Properties
CellCentreLatitude
Latitude of the resolved cell centre.
public double CellCentreLatitude { get; init; }
Property Value
CellCentreLongitude
Longitude of the resolved cell centre.
public double CellCentreLongitude { get; init; }
Property Value
Column
Column index of the resolved cell in the source grid (0-based).
public int Column { get; init; }
Property Value
RequestedTime
The time the caller asked for, or null if unspecified.
public DateTimeOffset? RequestedTime { get; init; }
Property Value
Row
Row index of the resolved cell in the source grid (0-based).
public int Row { get; init; }
Property Value
SampleTime
The actual time step (UTC) selected for this sample.
public DateTime SampleTime { get; init; }
Property Value
Trend
Decoded S-104 trend (per S-104 §10.2.2: 0=unknown, 1=decreasing,
2=increasing, 3=steady). When the raw value falls outside the
spec-defined set the raw integer is surfaced as the string instead.
public string Trend { get; init; }
Property Value
WaterLevelHeight
Water level height in metres relative to the vertical datum.
public double WaterLevelHeight { get; init; }
Property Value
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()