PrecipitationQuantity#

class gordias.util.units.PrecipitationQuantity(unit: Unit, is_rate_based: bool, is_mass_based: bool)#

Holds a precipitation unit with additional information.

Parameters:
  • unit (cf_units.Unit) – Unit of precipitation.

  • is_rate_based (bool) – True if the unit has a time component.

  • is_mass_based (bool) – True if the unit has a mass component.

unit#

Unit of precipitation.

Type:

cf_units.Unit

is_rate_based#

True if the unit has a time component.

Type:

bool

is_mass_based#

True if the unit has a mass component.

Type:

bool

Methods

PrecipitationQuantity.count(value, /)

Return number of occurrences of value.

PrecipitationQuantity.index(value[, start, stop])

Return first index of value.