Interface IVectorPyramidReducer
Marker interface for reducers that operate on a paired (u, v) decomposition rather than a single scalar field. Used by VectorMeanReducer for S-111 surface currents.
public interface IVectorPyramidReducer
Remarks
A vector reducer is not a drop-in for IPyramidReducer because the target and paired-field spans must be pooled together (mean of directions computed via the pooled sin/cos). Coverage sources that carry a vector-magnitude+angle pair invoke this reducer explicitly (see CoveragePyramidBuilder).
Methods
Reduce(ReadOnlySpan<float>, ReadOnlySpan<float>, float, float)
Reduces two paired windows to a single (speed, direction) pair.
(float Speed, float Direction) Reduce(ReadOnlySpan<float> speeds, ReadOnlySpan<float> directions, float noDataSpeed, float noDataDirection)
Parameters
speedsReadOnlySpan<float>Speed samples for this window (row-major).
directionsReadOnlySpan<float>Direction samples for this window, in degrees clockwise from north (S-111 ยง10.5.1).
noDataSpeedfloatNODATA sentinel for the speed field.
noDataDirectionfloatNODATA sentinel for the direction field.