plots.sources.numpy

Classes

NumpySource

A single source of data for a plot, capable of interpreting input as x, y, and z (or color) values.

Module Contents

class plots.sources.numpy.NumpySource(*args, x=None, y=None, z=None, u=None, v=None, crs=None, metadata=None, **kwargs)

Bases: earthkit.plots.sources.single.SingleSource

A single source of data for a plot, capable of interpreting input as x, y, and z (or color) values.

property data

Returns the data as a NumPy array.

property units

The units of the data, if specified in metadata.

property x_values

Returns the x values.

property y_values

Returns the y values.

property z_values

Returns the z values (or color values).