FractionalPhase

class baseband_tasks.phases.FractionalPhase(angle, unit=None, wrap_angle=None, **kwargs)[source] [edit on github]

Bases: astropy.coordinates.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 any Phase 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 on unit. If a string, it will be interpreted following the rules described for Angle.

unitUnitBase, 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_angleAngle or equivalent, optional

Angle at which to wrap back to wrap_angle - 1 cycle. If None (default), it will be taken to be 0.5 cycle unless angle has a wrap_angle attribute.

Raises
UnitsError

If a unit is not provided or it is not an angular unit.

TypeError

If the angle parameter is a Latitude.