Table of Contents

Class WeatherGrid

Namespace
EncDotNet.S100.Datasets.Weather
Assembly
EncDotNet.S100.Datasets.Weather.dll

A normalised regular latitude/longitude grid (EPSG:4326) in the order GridMetadata expects: the origin is the south-west point, rows run north and columns run east, and every longitude is in −180 to 180. Point (row, col) is at (OriginLatitude + row × SpacingLatitudinal, OriginLongitude + col × SpacingLongitudinal).

public sealed record WeatherGrid : IEquatable<WeatherGrid>
Inheritance
WeatherGrid
Implements
Inherited Members

Constructors

WeatherGrid(int, int, double, double, double, double)

A normalised regular latitude/longitude grid (EPSG:4326) in the order GridMetadata expects: the origin is the south-west point, rows run north and columns run east, and every longitude is in −180 to 180. Point (row, col) is at (OriginLatitude + row × SpacingLatitudinal, OriginLongitude + col × SpacingLongitudinal).

public WeatherGrid(int Rows, int Columns, double OriginLatitude, double OriginLongitude, double SpacingLatitudinal, double SpacingLongitudinal)

Parameters

Rows int

Number of rows.

Columns int

Number of columns.

OriginLatitude double

Latitude of the south-west point, in degrees.

OriginLongitude double

Longitude of the south-west point, in degrees.

SpacingLatitudinal double

Degrees between rows; positive.

SpacingLongitudinal double

Degrees between columns; positive.

Properties

CellCount

The number of points, Rows × Columns.

public int CellCount { get; }

Property Value

int

Columns

Number of columns.

public int Columns { get; init; }

Property Value

int

Extent

The grid footprint as NativeExtent defines it: from the origin to one spacing past the last point on each axis.

public BoundingBox Extent { get; }

Property Value

BoundingBox

OriginLatitude

Latitude of the south-west point, in degrees.

public double OriginLatitude { get; init; }

Property Value

double

OriginLongitude

Longitude of the south-west point, in degrees.

public double OriginLongitude { get; init; }

Property Value

double

Rows

Number of rows.

public int Rows { get; init; }

Property Value

int

SpacingLatitudinal

Degrees between rows; positive.

public double SpacingLatitudinal { get; init; }

Property Value

double

SpacingLongitudinal

Degrees between columns; positive.

public double SpacingLongitudinal { get; init; }

Property Value

double

Methods

ToGridMetadata()

Returns the grid as coverage pipeline GridMetadata.

public GridMetadata ToGridMetadata()

Returns

GridMetadata