plots.sources.earthkit

Attributes

VARIABLE_KEYS

Classes

EarthkitSource

Source class for earthkit data, allowing flexible x, y, z extraction using

Functions

get_points(dx)

Get points for a grid with a given resolution.

Module Contents

class plots.sources.earthkit.EarthkitSource(*args, x=None, y=None, z=None, **kwargs)

Bases: earthkit.plots.sources.single.SingleSource

Source class for earthkit data, allowing flexible x, y, z extraction using dimension names or values and supporting regridding if needed.

property crs

Return the CRS of the data.

property data

Return the original earthkit data.

datetime(*args, **kwargs)

Get the datetime of the data.

Parameters:
  • *args – The positional arguments to pass to the data object’s datetime method.

  • **kwargs – The keyword arguments to pass to the data object’s datetime method.

extract_u(u=None)
extract_v(v=None)
metadata(key, default=None)

Extract metadata from the data.

Parameters:
  • key (str) – The metadata key to extract.

  • default (any, optional) – The default value to return if the key is not found.

property x_values

The x values of the data.

property y_values

The y values of the data.

property z_values

The z values of the data.

plots.sources.earthkit.VARIABLE_KEYS = ['short_name', 'standard_name', 'long_name', 'name']
plots.sources.earthkit.get_points(dx)

Get points for a grid with a given resolution.