Table of Contents

Struct GribFixedSurface

Namespace
EncDotNet.S100.Datasets.Grib
Assembly
EncDotNet.S100.Datasets.Grib.dll

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

Type byte

The type of surface (code table 4.5); 255 means none.

Value double?

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

byte

HeightAboveGround

A height above ground; the value is in metres.

public const byte HeightAboveGround = 103

Field Value

byte

Isobaric

An isobaric surface; the value is in pascals.

public const byte Isobaric = 100

Field Value

byte

MeanSeaLevel

Mean sea level.

public const byte MeanSeaLevel = 101

Field Value

byte

None

No surface (missing).

public const byte None = 255

Field Value

byte

Properties

Type

The type of surface (code table 4.5); 255 means none.

public byte Type { get; init; }

Property Value

byte

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

double?

Methods

ToString()

Returns the surface as, for example, "type 103 = 10".

public override string ToString()

Returns

string