Class GribIndexEntry
- Namespace
- EncDotNet.S100.Collections.Weather
- Assembly
- EncDotNet.S100.Collections.dll
One line of a GRIB2 .idx inventory, as wgrib2 -s writes it.
public sealed record GribIndexEntry : IEquatable<GribIndexEntry>
- Inheritance
-
GribIndexEntry
- Implements
- Inherited Members
Constructors
GribIndexEntry(string, long, string)
One line of a GRIB2 .idx inventory, as wgrib2 -s writes it.
public GribIndexEntry(string Number, long Offset, string Text)
Parameters
NumberstringThe message number (
588, or588.2for a field inside a message).OffsetlongThe message's byte offset in the GRIB2 file.
TextstringThe whole line, e.g.
588:34343549:d=2026102718:UGRD:10 m above ground:3 hour fcst:.
Properties
Forecast
The forecast time (3 hour fcst, anl).
public string Forecast { get; }
Property Value
Level
The level (10 m above ground).
public string Level { get; }
Property Value
Number
The message number (588, or 588.2 for a field inside a message).
public string Number { get; init; }
Property Value
Offset
The message's byte offset in the GRIB2 file.
public long Offset { get; init; }
Property Value
Text
The whole line, e.g. 588:34343549:d=2026102718:UGRD:10 m above ground:3 hour fcst:.
public string Text { get; init; }
Property Value
Variable
The short name (UGRD).
public string Variable { get; }
Property Value
Methods
Matches(string)
True when the line is for the parameter match names (:UGRD:10 m above ground:).
public bool Matches(string match)
Parameters
matchstring