def consult_band(b: str, satsen: str):
    """Consult band common name.

    Args:
        b (str): band name.
        satsen (str): satellite sensor.

    Returns:
        str: band common name.
    """
    if satsen == 'LT05':
        common_name = {'sr_band1': 'blue', 'sr_band2':'green', 'sr_band3':'red', 'sr_band4':'nir', 'sr_band5':'swir1',
                       'sr_band7':'swir2',
                       'SR_B1': 'blue', 'SR_B2':'green', 'SR_B3':'red', 'SR_B4':'nir', 'SR_B5':'swir1',
                       'SR_B7':'swir2'}
        return common_name[b]
    elif satsen == 'LE07':
        common_name = {'sr_band1': 'blue', 'sr_band2':'green', 'sr_band3':'red', 'sr_band4':'nir', 'sr_band5':'swir1',
                       'sr_band7':'swir2',
                       'SR_B1': 'blue', 'SR_B2':'green', 'SR_B3':'red', 'SR_B4':'nir', 'SR_B5':'swir1',
                       'SR_B7':'swir2'}
        return common_name[b]
    elif satsen == 'LC08':
        common_name = {'sr_band1': 'coastal', 'sr_band2':'blue', 'sr_band3':'green', 'sr_band4':'red', 'sr_band5':'nir',
                       'sr_band6':'swir1', 'sr_band7':'swir2',
                       'SR_B1': 'coastal', 'SR_B2':'blue', 'SR_B3':'green', 'SR_B4':'red', 'SR_B5':'nir',
                       'SR_B6':'swir1', 'SR_B7':'swir2'}
        return common_name[b]
    elif satsen == 'S2A' or satsen == 'S2B':
        common_name = {'sr_band1': 'coastal', 'sr_band2': 'blue', 'sr_band3': 'green', 'sr_band4': 'red',
                       'sr_band5': 'rededge1', 'sr_band6': 'rededge2', 'sr_band7': 'rededge3',
                       'sr_band8': 'nir', 'sr_band8a': 'nir', 'sr_band11': 'swir1', 'sr_band12': 'swir2',
                       'B01': 'coastal', 'B02': 'blue', 'B03': 'green', 'B04': 'red',
                       'B05': 'rededge1', 'B06': 'rededge2', 'B07': 'rededge3',
                       'B08': 'nir', 'B8A': 'nir', 'B11': 'swir1', 'B12': 'swir2'}
        return common_name[b]
    return