Table of Contents

Class ForecastRuns

Namespace
EncDotNet.S100.Collections.Library
Assembly
EncDotNet.S100.Collections.dll

Forecast-run facts of a library item from an S-100 forecast feed (#685, NOAA's S-111): its model, run time and valid window.

public static class ForecastRuns
Inheritance
ForecastRuns
Inherited Members

Methods

BathymetryTwinOf(string)

The S-102 tile in the same grid cell as an S-111 tile (#685): NOAA names both on one tile grid, so 111US00_CBOFS_US4VA1DD pairs with 102US004VA1DD. null for a name with no tile cell.

public static string? BathymetryTwinOf(string tileName)

Parameters

tileName string

Returns

string

Horizon(CollectionItem)

How far ahead of its run the item forecasts.

public static TimeSpan? Horizon(CollectionItem item)

Parameters

item CollectionItem

Returns

TimeSpan?

IsForecast(CollectionItem)

True when item is one run's dataset from a forecast feed.

public static bool IsForecast(CollectionItem item)

Parameters

item CollectionItem

Returns

bool

ModelOf(CollectionItem)

The model the item belongs to (e.g. cbofs).

public static string? ModelOf(CollectionItem item)

Parameters

item CollectionItem

Returns

string

ShownWindow(CollectionItem, DateTimeOffset?)

The valid window of the run shown for item: the downloaded copy's run (localRun) when there is one, else the catalogue's latest, each lasting the item's Horizon(CollectionItem). null when either is unknown.

public static (DateTimeOffset Run, DateTimeOffset ValidTo)? ShownWindow(CollectionItem item, DateTimeOffset? localRun)

Parameters

item CollectionItem
localRun DateTimeOffset?

Returns

(DateTimeOffset First, DateTimeOffset Last)?