Class CoverageFieldsSample
The generic sample shape: a list of SampledFields plus where
and when they were read. Returned by a product that has no typed shape of
its own, so its values reach MCP callers with no tool changes. Written with
the JSON $kind "fields".
public sealed record CoverageFieldsSample : SampledValue, IEquatable<SampledValue>, IEquatable<CoverageFieldsSample>
- Inheritance
-
CoverageFieldsSample
- Implements
- Inherited Members
Constructors
CoverageFieldsSample(IReadOnlyList<SampledField>, DateTime?, DateTimeOffset?, int?, int?, double?, double?, string?, double?, double?, double?)
The generic sample shape: a list of SampledFields plus where
and when they were read. Returned by a product that has no typed shape of
its own, so its values reach MCP callers with no tool changes. Written with
the JSON $kind "fields".
public CoverageFieldsSample(IReadOnlyList<SampledField> Fields, DateTime? SampleTime = null, DateTimeOffset? RequestedTime = null, int? Row = null, int? Column = null, double? CellCentreLatitude = null, double? CellCentreLongitude = null, string? StationId = null, double? StationDistanceMetres = null, double? StationLatitude = null, double? StationLongitude = null)
Parameters
FieldsIReadOnlyList<SampledField>The sampled values with their quantities and units.
SampleTimeDateTime?UTC instant of the time step read;
nullfor a product with no time dimension.RequestedTimeDateTimeOffset?The time the caller asked for, or
nullif unspecified.Rowint?Zero-based row of the grid cell read;
nullfor a station.Columnint?Zero-based column of the grid cell read;
nullfor a station.CellCentreLatitudedouble?Latitude of the cell centre read;
nullfor a station.CellCentreLongitudedouble?Longitude of the cell centre read;
nullfor a station.StationIdstringIdentifier of the station read;
nullfor a grid.StationDistanceMetresdouble?Great-circle distance from the requested point to the station;
nullfor a grid.StationLatitudedouble?Latitude of the station;
nullfor a grid.StationLongitudedouble?Longitude of the station;
nullfor a grid.
Properties
CellCentreLatitude
Latitude of the cell centre read; null for a station.
public double? CellCentreLatitude { get; init; }
Property Value
CellCentreLongitude
Longitude of the cell centre read; null for a station.
public double? CellCentreLongitude { get; init; }
Property Value
Column
Zero-based column of the grid cell read; null for a station.
public int? Column { get; init; }
Property Value
- int?
Fields
The sampled values with their quantities and units.
public IReadOnlyList<SampledField> Fields { get; init; }
Property Value
RequestedTime
The time the caller asked for, or null if unspecified.
public DateTimeOffset? RequestedTime { get; init; }
Property Value
Row
Zero-based row of the grid cell read; null for a station.
public int? Row { get; init; }
Property Value
- int?
SampleTime
UTC instant of the time step read; null for a product with no time dimension.
public DateTime? SampleTime { get; init; }
Property Value
StationDistanceMetres
Great-circle distance from the requested point to the station; null for a grid.
public double? StationDistanceMetres { get; init; }
Property Value
StationId
Identifier of the station read; null for a grid.
public string? StationId { get; init; }
Property Value
StationLatitude
Latitude of the station; null for a grid.
public double? StationLatitude { get; init; }
Property Value
StationLongitude
Longitude of the station; null for a grid.
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()