Class WeatherGrid
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
RowsintNumber of rows.
ColumnsintNumber of columns.
OriginLatitudedoubleLatitude of the south-west point, in degrees.
OriginLongitudedoubleLongitude of the south-west point, in degrees.
SpacingLatitudinaldoubleDegrees between rows; positive.
SpacingLongitudinaldoubleDegrees between columns; positive.
Properties
CellCount
public int CellCount { get; }
Property Value
Columns
Number of columns.
public int Columns { get; init; }
Property Value
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
OriginLatitude
Latitude of the south-west point, in degrees.
public double OriginLatitude { get; init; }
Property Value
OriginLongitude
Longitude of the south-west point, in degrees.
public double OriginLongitude { get; init; }
Property Value
Rows
Number of rows.
public int Rows { get; init; }
Property Value
SpacingLatitudinal
Degrees between rows; positive.
public double SpacingLatitudinal { get; init; }
Property Value
SpacingLongitudinal
Degrees between columns; positive.
public double SpacingLongitudinal { get; init; }
Property Value
Methods
ToGridMetadata()
Returns the grid as coverage pipeline GridMetadata.
public GridMetadata ToGridMetadata()