obspy.core.util.obspy_types.FloatWithUncertaintiesFixedUnit

class FloatWithUncertaintiesFixedUnit(value, lower_uncertainty=None, upper_uncertainty=None)[source]

Bases: obspy.core.util.obspy_types.FloatWithUncertainties

Float value that has lower and upper uncertainties and a fixed unit associated with it. Helper class to inherit from setting a custom value for the fixed unit (set unit in derived class as class attribute).

Parameters:
  • value (float) Actual float value.
  • lower_uncertainty (float) Lower uncertainty (aka minusError)
  • upper_uncertainty (float) Upper uncertainty (aka plusError)
  • unit (str (read only)) Unit for physical interpretation of the float value.

Attributes

__dict__
__doc__ str(object=’‘) -> string
__module__ str(object=’‘) -> string
__weakref__ list of weak references to the object (if defined)
imag the imaginary part of a complex number
real the real part of a complex number
unit

Special Methods

__add__
__iadd__
__imul__
__init__
__mul__

This Page