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.10.05

Classes
| _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`.
| Bool Named `bool`, a sub-class of `int` like Python's `bool`.
| Str Named `str`.
| Band Named `str` representing a UTM/UPS band letter, unchecked.
| Degrees Named `float` representing a coordinate in `degrees`, optionally clipped.
| Degrees_ Named `Degrees` representing a coordinate in `degrees` with optional limits `low` and `high`.
| Degrees2 Named `float` representing a distance in `degrees squared`.
| Radians Named `float` representing a coordinate in `radians`, optionally clipped.
| Radians2 Named `float` representing a distance in `radians squared`.
| Bearing Named `float` representing a bearing in compass `degrees` from (true) North.
| Bearing_ Named `float` representing a bearing in `radians` from compass `degrees` from (true) North.
| 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, conventionally in `meter`.
| Epoch Named `epoch` with optional `low` and `high` limits representing a fractional calendar year.
| 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`.
| Lat_ Named `float` representing a latitude in `degrees` within limits `low` and `high`.
| Lon Named `float` representing a longitude in `degrees`.
| Lon_ Named `float` representing a longitude in `degrees` within limits `low` and `high`.
| Meter Named `float` representing a distance or length in `meter`.
| Northing Named `float` representing a northing, conventionally in `meter`.
| Number_ Named `int` representing a non-negative 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`