@staticmethod
def read_cross_file(in_file, file_type):
    '\n        :param in_file:\n        :param file_type:\n        :return:\n        '
    data = {'ymdhms1': None, 'ymdhms2': None, 'lon1': None, 'lat1': None, 'lon2': None, 'lat2': None, 'fix_name': None}
    if (not os.path.isfile(in_file)):
        print('***WARNING***File is not exist: {}'.format(in_file))
        return data
    if (file_type == 'leo_area'):
        data_raw = np.loadtxt(in_file, skiprows=10, dtype={'names': ('d1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7'), 'formats': ('S8', 'S8', 'S8', 'f4', 'f4', 'f4', 'f4')})
        if (data_raw.size != 0):
            ymd = data_raw['d1']
            hms1 = data_raw['d2']
            hms2 = data_raw['d3']
            ymdhms1 = list(map(ymdhms2date, ymd, hms1))
            ymdhms2 = list(map(ymdhms2date, ymd, hms2))
            data['ymdhms1'] = ymdhms1
            data['ymdhms2'] = ymdhms2
            data['lat1'] = data_raw['d4']
            data['lon1'] = data_raw['d5']
            data['lat2'] = data_raw['d6']
            data['lon2'] = data_raw['d7']
    elif (file_type == 'leo_leo'):
        data_raw = np.loadtxt(in_file, skiprows=10, dtype={'names': ('d1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7', 'd8', 'd9'), 'formats': ('S8', 'S8', 'f4', 'f4', 'S8', 'f4', 'f4', 'f4', 'f4')})
        if (data_raw.size != 0):
            ymd = data_raw['d1']
            hms1 = data_raw['d2']
            hms2 = data_raw['d5']
            ymdhms1 = list(map(ymdhms2date, ymd, hms1))
            ymdhms2 = list(map(ymdhms2date, ymd, hms2))
            data['ymdhms1'] = ymdhms1
            data['ymdhms2'] = ymdhms2
            data['lat1'] = data_raw['d3']
            data['lon1'] = data_raw['d4']
            data['lat2'] = data_raw['d6']
            data['lon2'] = data_raw['d7']
    elif (file_type == 'leo_fix'):
        data_raw = np.loadtxt(in_file, skiprows=10, dtype={'names': ('d1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7', 'd8'), 'formats': ('S8', 'S8', 'S8', 'f4', 'f4', 'f4', 'f4', 'f4')})
        if (data_raw.size != 0):
            ymd = data_raw['d1']
            hms1 = data_raw['d2']
            hms2 = data_raw['d2']
            ymdhms1 = list(map(ymdhms2date, ymd, hms1))
            ymdhms2 = list(map(ymdhms2date, ymd, hms2))
            data['ymdhms1'] = ymdhms1
            data['ymdhms2'] = ymdhms2
            data['lat1'] = data_raw['d6']
            data['lon1'] = data_raw['d7']
            data['lat2'] = data_raw['d4']
            data['lon2'] = data_raw['d5']
            data['fix_name'] = data_raw['d3']
    elif (file_type == 'geo_leo'):
        data_raw = np.loadtxt(in_file, skiprows=10, dtype={'names': ('d1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7'), 'formats': ('S8', 'S8', 'S8', 'f4', 'f4', 'f4', 'f4')})
        if (data_raw.size != 0):
            ymd = data_raw['d1']
            hms1 = data_raw['d2']
            hms2 = data_raw['d3']
            ymdhms1 = list(map(ymdhms2date, ymd, hms1))
            ymdhms2 = list(map(ymdhms2date, ymd, hms2))
            data['ymdhms1'] = ymdhms1
            data['ymdhms2'] = ymdhms2
            data['lat1'] = data_raw['d4']
            data['lon1'] = data_raw['d5']
            data['lat2'] = data_raw['d6']
            data['lon2'] = data_raw['d7']
    else:
        raise KeyError('Cant handle this file type： {}'.format(file_type))
    return data
:param in_file:
:param file_type:
:return:
@staticmethod
def read_cross_file(in_file, file_type):
    '\n        :param in_file:\n        :param file_type:\n        :return:\n        '
    data = {'ymdhms1': None, 'ymdhms2': None, 'lon1': None, 'lat1': None, 'lon2': None, 'lat2': None, 'fix_name': None}
    if (not os.path.isfile(in_file)):
        print('***WARNING***File is not exist: {}'.format(in_file))
        return data
    if (file_type == 'leo_area'):
        data_raw = np.loadtxt(in_file, skiprows=10, dtype={'names': ('d1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7'), 'formats': ('S8', 'S8', 'S8', 'f4', 'f4', 'f4', 'f4')})
        if (data_raw.size != 0):
            ymd = data_raw['d1']
            hms1 = data_raw['d2']
            hms2 = data_raw['d3']
            ymdhms1 = list(map(ymdhms2date, ymd, hms1))
            ymdhms2 = list(map(ymdhms2date, ymd, hms2))
            data['ymdhms1'] = ymdhms1
            data['ymdhms2'] = ymdhms2
            data['lat1'] = data_raw['d4']
            data['lon1'] = data_raw['d5']
            data['lat2'] = data_raw['d6']
            data['lon2'] = data_raw['d7']
    elif (file_type == 'leo_leo'):
        data_raw = np.loadtxt(in_file, skiprows=10, dtype={'names': ('d1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7', 'd8', 'd9'), 'formats': ('S8', 'S8', 'f4', 'f4', 'S8', 'f4', 'f4', 'f4', 'f4')})
        if (data_raw.size != 0):
            ymd = data_raw['d1']
            hms1 = data_raw['d2']
            hms2 = data_raw['d5']
            ymdhms1 = list(map(ymdhms2date, ymd, hms1))
            ymdhms2 = list(map(ymdhms2date, ymd, hms2))
            data['ymdhms1'] = ymdhms1
            data['ymdhms2'] = ymdhms2
            data['lat1'] = data_raw['d3']
            data['lon1'] = data_raw['d4']
            data['lat2'] = data_raw['d6']
            data['lon2'] = data_raw['d7']
    elif (file_type == 'leo_fix'):
        data_raw = np.loadtxt(in_file, skiprows=10, dtype={'names': ('d1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7', 'd8'), 'formats': ('S8', 'S8', 'S8', 'f4', 'f4', 'f4', 'f4', 'f4')})
        if (data_raw.size != 0):
            ymd = data_raw['d1']
            hms1 = data_raw['d2']
            hms2 = data_raw['d2']
            ymdhms1 = list(map(ymdhms2date, ymd, hms1))
            ymdhms2 = list(map(ymdhms2date, ymd, hms2))
            data['ymdhms1'] = ymdhms1
            data['ymdhms2'] = ymdhms2
            data['lat1'] = data_raw['d6']
            data['lon1'] = data_raw['d7']
            data['lat2'] = data_raw['d4']
            data['lon2'] = data_raw['d5']
            data['fix_name'] = data_raw['d3']
    elif (file_type == 'geo_leo'):
        data_raw = np.loadtxt(in_file, skiprows=10, dtype={'names': ('d1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7'), 'formats': ('S8', 'S8', 'S8', 'f4', 'f4', 'f4', 'f4')})
        if (data_raw.size != 0):
            ymd = data_raw['d1']
            hms1 = data_raw['d2']
            hms2 = data_raw['d3']
            ymdhms1 = list(map(ymdhms2date, ymd, hms1))
            ymdhms2 = list(map(ymdhms2date, ymd, hms2))
            data['ymdhms1'] = ymdhms1
            data['ymdhms2'] = ymdhms2
            data['lat1'] = data_raw['d4']
            data['lon1'] = data_raw['d5']
            data['lat2'] = data_raw['d6']
            data['lon2'] = data_raw['d7']
    else:
        raise KeyError('Cant handle this file type： {}'.format(file_type))
    return data