Struct GribFixedSurface
A fixed surface of a GRIB2 product (code table 4.5), for example the ground (type 1), mean sea level (type 101) or 10 m above ground (type 103, value 10).
public readonly record struct GribFixedSurface : IEquatable<GribFixedSurface>
- Implements
- Inherited Members
Constructors
GribFixedSurface(byte, double?)
A fixed surface of a GRIB2 product (code table 4.5), for example the ground (type 1), mean sea level (type 101) or 10 m above ground (type 103, value 10).
public GribFixedSurface(byte Type, double? Value)
Parameters
TypebyteThe type of surface (code table 4.5);
255means none.Valuedouble?The surface's value in the type's unit (metres for type 103, pascals for an isobaric surface), with the template's scale factor applied; or null when the template marks it missing.
Fields
GroundOrWater
The ground or water surface.
public const byte GroundOrWater = 1
Field Value
HeightAboveGround
A height above ground; the value is in metres.
public const byte HeightAboveGround = 103
Field Value
Isobaric
An isobaric surface; the value is in pascals.
public const byte Isobaric = 100
Field Value
MeanSeaLevel
Mean sea level.
public const byte MeanSeaLevel = 101
Field Value
None
No surface (missing).
public const byte None = 255
Field Value
Properties
Type
The type of surface (code table 4.5); 255 means none.
public byte Type { get; init; }
Property Value
Value
The surface's value in the type's unit (metres for type 103, pascals for an isobaric surface), with the template's scale factor applied; or null when the template marks it missing.
public double? Value { get; init; }
Property Value
Methods
ToString()
Returns the surface as, for example, "type 103 = 10".
public override string ToString()