Mixins

class ceda_datapoint.mixins.general.UIMixin[source]

Mixin for behaviours common to all User-facing classes.

help(additionals: list = None)[source]

Link to documentation or other sources of assistance.

property meta

Retrieve the meta values (read-only)

property collection

Retrieve the collection name (read-only)

class ceda_datapoint.mixins.properties.PropertiesMixin[source]

Mixin for Item/Cloud product objects where specific properties apply to all sub-elements of the object.

All Objects under PropertiesMixin must have a _mapper attachment.

help(additionals: list = None) None[source]

Get all properties of this Mixin

property bbox: list

Get the bounding box for this object. Stac_attrs is mapper-aware.

property start_datetime: str

Get the start datetime for this object. _properties is mapper-aware.

property end_datetime: str

Get the end datetime for this object. _properties is mapper-aware.

property attributes: dict

Attributes for this object listed under properties in the STAC record. _properties is mapper-aware.

property stac_attributes: dict

Top-level attributes for this object in the STAC record. _stac_attrs is mapper-aware.

property variables: str | list[str]

Return the variables for this object if present.

property units: str | list[str]

Return the units for this object if present.

get_attribute(attr: str)[source]

Retrieve a specific attribute from this object’s STAC Record, from either the stac attributes or properties.