pyinterp.cf.AxisUnit

Contents

pyinterp.cf.AxisUnit#

class pyinterp.cf.AxisUnit(iterable=(), /)[source]#

Bases: set

Base class for managing valid CF convention units for coordinate axes.

This class extends Python’s built-in set to store and validate standardized units used in Climate and Forecast (CF) conventions for coordinate axes.

Attributes

units

Retrieve the set of valid units for this axis type.

Inherited Methods

add(object, /)

Add an element to a set.

clear()

Remove all elements from this set.

copy()

Return a shallow copy of a set.

difference(*others)

Return a new set with elements in the set that are not in the others.

difference_update(*others)

Update the set, removing elements found in others.

discard(object, /)

Remove an element from a set if it is a member.

intersection(*others)

Return a new set with elements common to the set and all others.

intersection_update(*others)

Update the set, keeping only elements found in it and all others.

isdisjoint(other, /)

Return True if two sets have a null intersection.

issubset(other, /)

Report whether another set contains this set.

issuperset(other, /)

Report whether this set contains another set.

pop()

Remove and return an arbitrary set element.

remove(object, /)

Remove an element from a set; it must be a member.

symmetric_difference(other, /)

Return a new set with elements in either the set or other but not both.

symmetric_difference_update(other, /)

Update the set, keeping only elements found in either set, but not in both.

union(*others)

Return a new set with elements from the set and all others.

update(*others)

Update the set, adding elements from all others.