Class WeatherFeedSource
- Namespace
- EncDotNet.S100.Collections
- Assembly
- EncDotNet.S100.Collections.dll
A weather service (#1075; design note weather-sources.md §6.3): NOMADS'
GRIB filter or NOAA's GFS files on AWS (one model run, cut to the chosen
parameters, forecast hours and, for the filter, area), active
api.weather.gov alerts for an area's marine zones, or ERDDAP
datasets chosen by dataset id. Each index lists the service's latest run
(or the alerts in force now) as one online item per model or dataset,
downloaded as one file; a newer run replaces the last unless it is pinned.
public sealed record WeatherFeedSource : CollectionSource, IEquatable<CollectionSource>, IEquatable<WeatherFeedSource>
- Inheritance
-
WeatherFeedSource
- Implements
- Inherited Members
Constructors
WeatherFeedSource(Guid, string?, Uri, WeatherService, WeatherSelection)
A weather service (#1075; design note weather-sources.md §6.3): NOMADS'
GRIB filter or NOAA's GFS files on AWS (one model run, cut to the chosen
parameters, forecast hours and, for the filter, area), active
api.weather.gov alerts for an area's marine zones, or ERDDAP
datasets chosen by dataset id. Each index lists the service's latest run
(or the alerts in force now) as one online item per model or dataset,
downloaded as one file; a newer run replaces the last unless it is pinned.
public WeatherFeedSource(Guid Id, string? DisplayName, Uri ServiceUri, WeatherService Service, WeatherSelection Selection)
Parameters
IdGuidThe source's stable identifier.
DisplayNamestringAn optional user-facing label.
ServiceUriUriThe service's endpoint: the GRIB filter script, the bucket root, the alerts endpoint (
…/alerts/active) or the ERDDAP root (…/erddap/).ServiceWeatherServiceWhat the service offers and how it is asked, copied from its known source.
SelectionWeatherSelectionWhat the source includes: parameters, forecast hours, area, zones or datasets.
Properties
Attribution
The attribution the provider asks for ("NOAA/NCEP GFS-Wave", "Contains modified Copernicus Marine Service information"), carried onto every item and shown in the layer stack and pick report; null for none.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Attribution { get; init; }
Property Value
Licence
The data's licence ("Public domain", "CC BY 4.0"), carried onto every item and loaded layer; null when unknown.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Licence { get; init; }
Property Value
Selection
What the source includes: parameters, forecast hours, area, zones or datasets.
public WeatherSelection Selection { get; init; }
Property Value
Service
What the service offers and how it is asked, copied from its known source.
public WeatherService Service { get; init; }
Property Value
ServiceUri
The service's endpoint: the GRIB filter script, the bucket root, the alerts
endpoint (…/alerts/active) or the ERDDAP root (…/erddap/).
public Uri ServiceUri { get; init; }