Table of Contents

Class S104DatasetReader

Namespace
EncDotNet.S100.Datasets.S104
Assembly
EncDotNet.S100.Datasets.S104.dll

Reads an S-104 Water Level dataset from an HDF5 file via the IHdf5File abstraction. Supports data coding format 1 (time-major positioned stations), data coding format 2 (regularly-gridded coverage), and data coding format 8 (station-major fixed stations).

public static class S104DatasetReader
Inheritance
S104DatasetReader
Inherited Members

Methods

Read(IHdf5File)

Reads an S104Dataset from the given HDF5 file. Throws S100DatasetNotSupportedException if the dataset is not dcf2 (regularly-gridded). Use ReadAny(IHdf5File) to handle dcf1, dcf2, and dcf8.

public static S104Dataset Read(IHdf5File file)

Parameters

file IHdf5File

Returns

S104Dataset

ReadAny(IHdf5File)

Reads either a dcf2 S104Dataset or a dcf1/dcf8 S104StationSeriesDataset from the given HDF5 file, dispatching on the /WaterLevel/dataCodingFormat attribute (S-100 Part 10c §10.2.1). Other data coding formats raise S100DatasetNotSupportedException.

public static S104DatasetData ReadAny(IHdf5File file)

Parameters

file IHdf5File

Returns

S104DatasetData

ReadMetadata(IHdf5File)

Reads only the lightweight DatasetMetadata for the S-104 dataset — its declared specification, horizontal CRS, geographic extent, and temporal coverage — for phased / deferred loading (issue #460).

public static DatasetMetadata ReadMetadata(IHdf5File file)

Parameters

file IHdf5File

Returns

DatasetMetadata

Remarks

For data coding format 2 (regularly-gridded) the extent is the union of the WaterLevel.NN grid footprints and the time coverage spans the timePoint attributes of every Group_NNN step, read without touching the per-step values arrays. For station-series data coding formats 1 and 8, the comparatively small station series is read in full and the extent / time span are derived from the station positions and record windows.