QualityMetric#
- class pypillometry.QualityMetric(name, title, value, unit='', label=None, description='', thresholds=None)[source]#
Bases:
objectA single quality measure.
- Attributes:
- namestr
short name (e.g., “missing_pct”)
- titlestr
human-readable name (e.g., “missing data”)
- valuefloat, int, str or None
the value (NaN or None if it could not be computed)
- unitstr
unit of value (e.g., “%”, “s”, “deg”)
- labelstr or None
“good”, “ok”, “poor”, “bad”, or None if the measure has no label
- descriptionstr
what is measured
- thresholdstuple or None
the thresholds used for the label
Methods
Return the value with unit as a short string.
Return the metric as a dict (value, unit, label, description).
Details