Class RemoteS100CatalogueReader
- Namespace
- EncDotNet.S100.Collections.RemoteCatalogues
- Assembly
- EncDotNet.S100.Collections.dll
Reads a RemoteS100Catalogue from a downloaded S-100 CATALOG.XML.
public static class RemoteS100CatalogueReader
- Inheritance
-
RemoteS100CatalogueReader
- Inherited Members
Methods
Read(Stream, Uri, string?)
Reads the catalogue in stream, which may be
gzip-compressed (NOAA serves some copies with
Content-Encoding: gzip), resolving dataset file names against
catalogUri.
public static RemoteS100Catalogue Read(Stream stream, Uri catalogUri, string? downloadFolder = null)
Parameters
streamStreamThe catalogue's bytes.
catalogUriUriWhere the catalogue was fetched from.
downloadFolderstringThe managed download folder items go to (see DownloadFolder).
Returns
Exceptions
- XmlException
The content is not an S-100 exchange catalogue.
StableName(string)
A dataset's name without the version or run-time tokens some
producers append to their file names, so the item keeps its identity
across editions. NOAA appends digits to S-102 tile names
(102US004SC1EV262247 → 102US004SC1EV) and a run time to
forecast tiles (104US004SC1BO_20251217T12Z → 104US004SC1BO).
Other names are kept as they are.
public static string StableName(string stem)
Parameters
stemstring