get_dms_angle¶
- sofia_redux.scan.utilities.utils.get_dms_angle(value, default=nan)[source]¶
Return a degree angle quantity from a given value.
The provided value may be a Quantity, float, int, or string value. If a string value is provided, it will be parsed according to
parse_angle()
.- Parameters:
- valueint or float or str or units.Quantity
- defaultint or float or units.Quantity, optional
The default angle to return in cases where the
value
cannot be parsed correctly
- Returns:
- angleunits.Quantity
The resolved angle in degrees.