def string_to_float(in_str):
    """Turn the Fortran format string into a float"""
    if 'D' not in in_str:
        in_str = in_str.replace('-', 'D-')
    out_float = float(in_str.replace('D', 'E'))
    return out_float
