parse_time

sofia_redux.scan.utilities.utils.parse_time(hms_string, angle=False)[source]

Returns H:M:S string as time Quantity.

Parameters:
hms_stringstring or float
anglebool, optional

If True, return an hour angle unit instead of hour unit.

Returns:
timeunits.Quantity

An hour if angle is False, otherwise an hour angle.