Package pygeodesy :: Module units |
[frames] | no frames]

# Module units

Sub-classes `Float`, `Int` and `Str` from basic `float`, `int` respectively `str` to named units as Degrees, Feet, Meter, Radians, etc.

Version: 20.08.09

Classes
| UnitError Default exception for units issues.
| _NamedUnit (INTERNAL) Base class for `units`.
| Float Named `float`.
| Float_ Named `float` with optional `low` and `high` limit.
| Int Named `int`.
| Int_ Named `int` with optional limits `low` and `high`.
| Str Named `str`.
| Band Named `str` representing a UTM/UPS band letter, unchecked.
| Degrees Named `float` representing a coordinate in `degrees`, optionally clipped.
| Bearing Named `float` representing a bearing in compass `degrees`.
| Radians Named `float` representing a coordinate in `radians`, optionally clipped.
| Bearing_ Named `float` representing a bearing in `radians` from compass `degrees`.
| Distance Named `float` representing a distance, conventionally in `meter`.
| Distance_ Named `float` with optional `low` and `high` limits representing a distance, conventionally in `meter`.
| Easting Named `float` representing an easting.
| Feet Named `float` representing a distance or length in `feet`.
| Height Named `float` representing a height, conventionally in `meter`.
| Lam Named `float` representing a longitude in `radians`.
| Lam_ Named `float` representing a longitude in `radians` converted from `degrees`.
| Lat Named `float` representing a latitude in `degrees`.
| Lon Named `float` representing a longitude in `degrees`.
| Meter Named `float` representing a distance or length in `meter`.
| Northing Named `float` representing a northing.
| Number_ Named `int` with optional limits `low` and `high` representing a non-negtive number.
| Phi Named `float` representing a latitude in `radians`.
| Phi_ Named `float` representing a latitude in `radians` converted from `degrees`.
| Precision_ Named `int` with optional `low` and `high` limits representing a precision.
| Radius Named `float` representing a radius, conventionally in `meter`.
| Radius_ Named `float` with optional `low` and `high` limits representing a radius, conventionally in `meter`.
| Scalar Named `float` representing a factor, fraction, scale, etc.
| Scalar_ Named `float` with optional `low` and `high` limits representing a factor, fraction, scale, etc.
| Zone Named `int` representing a UTM/UPS zone number.

Variables
| __all__ = `_ALL_LAZY.units`