Class WeatherSelection
- Namespace
- EncDotNet.S100.Collections.Weather
- Assembly
- EncDotNet.S100.Collections.dll
What a WeatherFeedSource includes (#1075): which of its service's parameters or datasets, which forecast hours, and where.
public sealed record WeatherSelection : IEquatable<WeatherSelection>
- Inheritance
-
WeatherSelection
- Implements
- Inherited Members
Constructors
WeatherSelection(IReadOnlyList<string>?, IReadOnlyList<int>?, GeoBounds?, IReadOnlyList<string>?, IReadOnlyList<string>?)
What a WeatherFeedSource includes (#1075): which of its service's parameters or datasets, which forecast hours, and where.
public WeatherSelection(IReadOnlyList<string>? Parameters = null, IReadOnlyList<int>? Hours = null, GeoBounds? Area = null, IReadOnlyList<string>? Zones = null, IReadOnlyList<string>? Datasets = null)
Parameters
ParametersIReadOnlyList<string>For a GRIB2 service, the chosen parameters' IndexMatch keys (
:HTSGW:surface:); empty for none chosen, which means the service's defaults.HoursIReadOnlyList<int>For a model service, the forecast hours (0, 3, 6 …); empty means the service's defaults.
AreaGeoBounds?The area: the GRIB filter and ERDDAP cut to it, alerts are those of its marine zones; null for the whole grid (AWS) or every marine zone (alerts).
ZonesIReadOnlyList<string>For alerts, the NWS marine zone codes in the area (
ANZ535); empty to ask by area.DatasetsIReadOnlyList<string>For ERDDAP, the chosen dataset ids; empty means the service's defaults.
Properties
Area
The area: the GRIB filter and ERDDAP cut to it, alerts are those of its marine zones; null for the whole grid (AWS) or every marine zone (alerts).
public GeoBounds? Area { get; init; }
Property Value
Datasets
For ERDDAP, the chosen dataset ids.
public IReadOnlyList<string> Datasets { get; init; }
Property Value
Hours
The chosen forecast hours.
public IReadOnlyList<int> Hours { get; init; }
Property Value
Parameters
The chosen parameters' .idx keys.
public IReadOnlyList<string> Parameters { get; init; }
Property Value
Zones
For alerts, the marine zones of the area.
public IReadOnlyList<string> Zones { get; init; }
Property Value
Methods
DatasetsOf(WeatherService)
The datasets this selection includes from service: the chosen ones, else its defaults (else all).
public IReadOnlyList<WeatherServiceDataset> DatasetsOf(WeatherService service)
Parameters
serviceWeatherService
Returns
HoursOf(WeatherService)
The forecast hours this selection includes: the chosen ones the service offers, else up to its default hour.
public IReadOnlyList<int> HoursOf(WeatherService service)
Parameters
serviceWeatherService
Returns
ParametersOf(WeatherService)
The parameters this selection includes from service: the chosen ones, else its defaults (else all).
public IReadOnlyList<WeatherServiceParameter> ParametersOf(WeatherService service)
Parameters
serviceWeatherService