Class SampleCoverageRequest
Request payload for SampleCoverageService.
public sealed record SampleCoverageRequest : IEquatable<SampleCoverageRequest>
- Inheritance
-
SampleCoverageRequest
- Implements
- Inherited Members
Constructors
SampleCoverageRequest(SpecRef, double, double, DateTimeOffset?, TimeQuery?, TimeOutOfRangePolicy)
Request payload for SampleCoverageService.
public SampleCoverageRequest(SpecRef Spec, double Latitude, double Longitude, DateTimeOffset? Time = null, TimeQuery? Times = null, TimeOutOfRangePolicy OutOfRange = TimeOutOfRangePolicy.Error)
Parameters
SpecSpecRefSpec of the coverage to sample: S-102, S-104, S-111, or any product whose catalog payload implements ICoverageSampler.
LatitudedoubleSample latitude (decimal degrees, WGS-84).
LongitudedoubleSample longitude (decimal degrees, WGS-84).
TimeDateTimeOffset?Optional time selector for time-varying products (S-104, S-111). Ignored for S-102 (which has no time dimension). When null on a time-varying product the first time step of the matched coverage is used. When supplied, the nearest time step of a dataset whose range contains the time is selected; a time outside every covering dataset's range is handled per
OutOfRange.TimesTimeQueryOptional richer temporal query. Takes precedence over
Timewhen supplied.Instantbehaves likeTime;RangeandSeriespopulate Series with a per-step entry. Currently honoured for gridded S-104 and S-111; ignored elsewhere.OutOfRangeTimeOutOfRangePolicyWhat to do when a single requested instant lies outside the time range of every dataset covering the point: Error (the default) returns TimeOutOfRange; Nearest samples the nearest step and flags it in TimeStatus. Windowed queries are unaffected.
Properties
Latitude
Sample latitude (decimal degrees, WGS-84).
public double Latitude { get; init; }
Property Value
Longitude
Sample longitude (decimal degrees, WGS-84).
public double Longitude { get; init; }
Property Value
OutOfRange
What to do when a single requested instant lies outside the time range of every dataset covering the point: Error (the default) returns TimeOutOfRange; Nearest samples the nearest step and flags it in TimeStatus. Windowed queries are unaffected.
public TimeOutOfRangePolicy OutOfRange { get; init; }
Property Value
Spec
Spec of the coverage to sample: S-102, S-104, S-111, or any product whose catalog payload implements ICoverageSampler.
public SpecRef Spec { get; init; }
Property Value
Time
Optional time selector for time-varying products (S-104, S-111). Ignored for S-102
(which has no time dimension). When null on a time-varying product the first time
step of the matched coverage is used. When supplied, the nearest time step of a
dataset whose range contains the time is selected; a time outside every covering
dataset's range is handled per OutOfRange.
public DateTimeOffset? Time { get; init; }
Property Value
Times
Optional richer temporal query. Takes precedence over Time
when supplied. Instant behaves like Time; Range
and Series populate Series with a
per-step entry. Currently honoured for gridded S-104 and S-111; ignored
elsewhere.
public TimeQuery? Times { get; init; }