FractionalPhase¶
- class baseband_tasks.phases.FractionalPhase(angle, unit=None, wrap_angle=None, **kwargs)[source] [edit on github]¶
Bases:
Longitude
Phase without the cycle count, i.e., with a range of 1 cycle.
This subclass of
Longitude
differs from it mostly in being able to take the fractional part of anyPhase
input.- Parameters:
- anglearray, list, scalar,
Quantity
, Angle
The angle value(s). If a tuple, will be interpreted as(h, m s)
or(d, m, s)
depending onunit
. If a string, it will be interpreted following the rules described forAngle
.- unit
UnitBase
, str, optional The unit of the value specified for the angle. This may be any string that
Unit
understands. Must be an angular unit. Default is ‘cycle’.- wrap_angle
Angle
or equivalent, optional Angle at which to wrap back to
wrap_angle - 1 cycle
. IfNone
(default), it will be taken to be 0.5 cycle unlessangle
has awrap_angle
attribute.
- anglearray, list, scalar,
- Raises:
UnitsError
If a unit is not provided or it is not an angular unit.
TypeError
If the angle parameter is a
Latitude
.