Class SurfaceCurrentStationSample
S-111 surface current 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 (S-111 Edition 2.0.0 §10.2.3 / §10.2.7).
public sealed record SurfaceCurrentStationSample : SampledValue, IEquatable<SampledValue>, IEquatable<SurfaceCurrentStationSample>
- Inheritance
-
SurfaceCurrentStationSample
- Implements
- Inherited Members
Constructors
SurfaceCurrentStationSample(string, double, double, double, double, DateTime, DateTimeOffset?, double, double)
S-111 surface current 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 (S-111 Edition 2.0.0 §10.2.3 / §10.2.7).
public SurfaceCurrentStationSample(string StationId, double StationDistanceMetres, double SpeedMetresPerSecond, double SpeedKnots, double DirectionDegreesTrue, DateTime SampleTime, DateTimeOffset? RequestedTime, double StationLatitude, double StationLongitude)
Parameters
StationIdstringReporting station identifier (S-111
stationIdentification).StationDistanceMetresdoubleGreat-circle distance from requested point to the station, metres.
SpeedMetresPerSeconddoubleSpeed in metres per second, converted from the encoded knots as
kn × 0.514444.SpeedKnotsdoubleSpeed in knots — the unit S-111 encodes
surfaceCurrentSpeedin.DirectionDegreesTruedoubleDirection in degrees from true north, clockwise (0..360).
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
DirectionDegreesTrue
Direction in degrees from true north, clockwise (0..360).
public double DirectionDegreesTrue { get; init; }
Property Value
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
SpeedKnots
Speed in knots — the unit S-111 encodes surfaceCurrentSpeed in.
public double SpeedKnots { get; init; }
Property Value
SpeedMetresPerSecond
Speed in metres per second, converted from the encoded knots as kn × 0.514444.
public double SpeedMetresPerSecond { 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-111 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
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()