src/pys5p/swir_region.py
def mask(mode='illuminated', band='78'):
    """
    Return mask of the illuminated region, where the value of the illuminated
    pixels are set to True.

    Parameters
    ----------
    mode  :   {'illuminated', 'level2'}, optional
       default is 'illuminated'
    band  :   str, optional
       select band 7 or 8, default is both bands
    """
    if band in ('7', '8'):
        res = np.full((256, 500), False)
    else:
        res = np.full((256, 1000), False)

    res[coords(mode, band)] = True

    return res

    Return mask of the illuminated region, where the value of the illuminated
    pixels are set to True.

    Parameters
    ----------
    mode  :   {'illuminated', 'level2'}, optional
       default is 'illuminated'
    band  :   str, optional
       select band 7 or 8, default is both bands
    
Return mask of the illuminated region, where the value of the illuminated
pixels are set to True.

Parameters


Return mask of the illuminated region where the value of the illuminated pixels are set to True . Parameters
def mask(mode='illuminated', band='78'):
    if band in ('7', '8'):
        res = np.full((256, 500), False)
    else:
        res = np.full((256, 1000), False)
    res[coords(mode, band)] = True
    return res
def mask ( mode = 'illuminated' , band = '78' ) : if band in ( '7' , '8' ) : res = np . full ( ( 256 , 500 ) , False ) else : res = np . full ( ( 256 , 1000 ) , False ) res [ coords ( mode , band ) ] = True return res
Return mask of the illuminated region, where the value of the illuminated
pixels are set to True.
Return mask of the illuminated region where the value of the illuminated pixels are set to True .
"""
    Return mask of the illuminated region, where the value of the illuminated
    pixels are set to True.

    Parameters
    ----------
    mode  :   {'illuminated', 'level2'}, optional
       default is 'illuminated'
    band  :   str, optional
       select band 7 or 8, default is both bands
    """
mode
band