Class WaterLevelStationSample
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
StationIdstringReporting station identifier (S-104
stationIdentification).StationDistanceMetresdoubleGreat-circle distance from requested point to the station, metres.
WaterLevelHeightdoubleWater level height in metres relative to the vertical datum.
TrendstringDecoded S-104 trend (see WaterLevelSample).
SampleTimeDateTimeActual time step (UTC) selected for this sample.
RequestedTimeDateTimeOffset?The time the caller asked for, or
nullif unspecified.StationLatitudedoubleLatitude of the matched station.
StationLongitudedoubleLongitude of the matched station.
Properties
RequestedTime
The time the caller asked for, or null if unspecified.
public DateTimeOffset? RequestedTime { get; init; }
Property Value
SampleTime
Actual time step (UTC) selected for this sample.
public DateTime SampleTime { get; init; }
Property Value
StationDistanceMetres
Great-circle distance from requested point to the station, metres.
public double StationDistanceMetres { get; init; }
Property Value
StationId
Reporting station identifier (S-104 stationIdentification).
public string StationId { get; init; }
Property Value
StationLatitude
Latitude of the matched station.
public double StationLatitude { get; init; }
Property Value
StationLongitude
Longitude of the matched station.
public double StationLongitude { get; init; }
Property Value
Trend
Decoded S-104 trend (see WaterLevelSample).
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()