to_header_float

sofia_redux.scan.utilities.utils.to_header_float(value, unit=None)[source]

Parse a value to a parsable header float value.

Parameters:
valuefloat or units.Quantity or None
unitstr or units.Unit or units.Quantity or int or float, optional

If a quantity was passed in, convert to this unit first.

Returns:
float