earthkit.data.readers.xarray.grid

Classes

Grid

Abstract base class for grid structures.

LatLonGrid

Grid class for latitude and longitude coordinates.

MeshProjectionGrid

Grid class for meshed projected coordinates.

MeshedGrid

Grid class for meshed latitude and longitude coordinates.

MeshedXYGrid

Grid class for meshed x and y coordinates.

ProjectionGrid

Grid class for projected x and y coordinates.

RawXYGrid

Grid class for raw x and y coordinates.

UnstructuredGrid

Grid class for unstructured latitude and longitude coordinates.

UnstructuredProjectionGrid

Grid class for unstructured projected coordinates.

UnstructuredXYGrid

Grid class for unstructured x and y coordinates.

XYGrid

Grid class for x and y coordinates.

XarrayGrid

Grid class for latitude and longitude coordinates.

Module Contents

class earthkit.data.readers.xarray.grid.Grid

Bases: abc.ABC

Abstract base class for grid structures.

property latlons: Tuple[Any, Any]
Abstractmethod:

Get the grid points.

property xys: Tuple[Any, Any]
Abstractmethod:

Get the grid points.

class earthkit.data.readers.xarray.grid.LatLonGrid(lat, lon, variable_dims)

Bases: Grid

Grid class for latitude and longitude coordinates.

lat
property latlons: Tuple[Any, Any]
Abstractmethod:

Get the grid points.

lon
variable_dims
property xys: Tuple[Any, Any]
Abstractmethod:

Get the x and y points for the lat-lon grid.

class earthkit.data.readers.xarray.grid.MeshProjectionGrid(x, y, projection)

Bases: ProjectionGrid

Grid class for meshed projected coordinates.

latlons()

Get the grid points for the mesh projection grid.

projection
transformer()

Get the transformer for the projection.

Returns:

The transformer.

Return type:

Any

x
xys()

Get the x and y points for the mesh projection grid.

y
class earthkit.data.readers.xarray.grid.MeshedGrid(lat, lon, variable_dims)

Bases: LatLonGrid

Grid class for meshed latitude and longitude coordinates.

lat
latlons()

Get the grid points for the meshed grid.

lon
variable_dims
property xys: Tuple[Any, Any]
Abstractmethod:

Get the x and y points for the lat-lon grid.

class earthkit.data.readers.xarray.grid.MeshedXYGrid(x, y, variable_dims)

Bases: RawXYGrid

Grid class for meshed x and y coordinates.

property latlons: Tuple[Any, Any]
Abstractmethod:

Get the lat and lon points for the raw xy grid.

variable_dims
x
xys()

Get the grid points for the meshed grid.

y
class earthkit.data.readers.xarray.grid.ProjectionGrid(x, y, projection)

Bases: XYGrid

Grid class for projected x and y coordinates.

property latlons: Tuple[Any, Any]
Abstractmethod:

Get the grid points.

projection
transformer()

Get the transformer for the projection.

Returns:

The transformer.

Return type:

Any

x
property xys: Tuple[Any, Any]
Abstractmethod:

Get the grid points.

y
class earthkit.data.readers.xarray.grid.RawXYGrid(x, y, variable_dims)

Bases: XYGrid

Grid class for raw x and y coordinates.

property latlons: Tuple[Any, Any]
Abstractmethod:

Get the lat and lon points for the raw xy grid.

variable_dims
x
property xys: Tuple[Any, Any]
Abstractmethod:

Get the grid points.

y
class earthkit.data.readers.xarray.grid.UnstructuredGrid(lat, lon, variable_dims)

Bases: LatLonGrid

Grid class for unstructured latitude and longitude coordinates.

grid_dims
lat
latlons()

Get the grid points for the unstructured grid.

lon
variable_dims
property xys: Tuple[Any, Any]
Abstractmethod:

Get the x and y points for the lat-lon grid.

class earthkit.data.readers.xarray.grid.UnstructuredProjectionGrid(x, y, projection)

Bases: ProjectionGrid

Grid class for unstructured projected coordinates.

latlons()

Get the grid points for the unstructured projection grid.

projection
transformer()

Get the transformer for the projection.

Returns:

The transformer.

Return type:

Any

x
xys()

Get the x and y points for the mesh projection grid.

y
class earthkit.data.readers.xarray.grid.UnstructuredXYGrid(x, y, variable_dims)

Bases: RawXYGrid

Grid class for unstructured x and y coordinates.

grid_dims
property latlons: Tuple[Any, Any]
Abstractmethod:

Get the lat and lon points for the raw xy grid.

variable_dims
x
xys()

Get the grid points for the unstructured grid.

y
class earthkit.data.readers.xarray.grid.XYGrid(x, y)

Bases: Grid

Grid class for x and y coordinates.

property latlons: Tuple[Any, Any]
Abstractmethod:

Get the grid points.

x
property xys: Tuple[Any, Any]
Abstractmethod:

Get the grid points.

y
class earthkit.data.readers.xarray.grid.XarrayGrid(latlon_grid=None, xy_grid=None)

Grid class for latitude and longitude coordinates.

bbox()
latlon_grid = None
property latlons
property projection
xy_grid = None
property xys