src/pys5p/swir_region.py
def coords(mode='illuminated', band='78') -> slice:
    """
    Return slice defining the illuminated region on the SWIR detector

    Parameters
    ----------
    mode  :   {'illuminated', 'level2'}, optional
       default is 'illuminated'
    band  :   str, optional
       select band 7 or 8, default is both bands
    """
    if mode == 'level2':
        if band == '7':
            return np.s_[12:227, 20:500]
        if band == '8':
            return np.s_[12:227, :480]
        # else
        return np.s_[12:227, 20:980]

    if band == '7':
        return np.s_[11:228, 16:500]
    if band == '8':
        return np.s_[11:228, :491]
    # else
    return np.s_[11:228, 16:991]

    Return slice defining the illuminated region on the SWIR detector

    Parameters
    ----------
    mode  :   {'illuminated', 'level2'}, optional
       default is 'illuminated'
    band  :   str, optional
       select band 7 or 8, default is both bands
    
Return slice defining the illuminated region on the SWIR detector
Parameters


Return slice defining the illuminated region on the SWIR detector Parameters
def coords(mode='illuminated', band='78') -> slice:
    if mode == 'level2':
        if band == '7':
            return np.s_[12:227, 20:500]
        if band == '8':
            return np.s_[12:227, :480]
        return np.s_[12:227, 20:980]
    if band == '7':
        return np.s_[11:228, 16:500]
    if band == '8':
        return np.s_[11:228, :491]
    return np.s_[11:228, 16:991]
def coords ( mode = 'illuminated' , band = '78' ) -> slice : if mode == 'level2' : if band == '7' : return np . s_ [ 12 : 227 , 20 : 500 ] if band == '8' : return np . s_ [ 12 : 227 , : 480 ] return np . s_ [ 12 : 227 , 20 : 980 ] if band == '7' : return np . s_ [ 11 : 228 , 16 : 500 ] if band == '8' : return np . s_ [ 11 : 228 , : 491 ] return np . s_ [ 11 : 228 , 16 : 991 ]
Return slice defining the illuminated region on the SWIR detector
Parameters
Return slice defining the illuminated region on the SWIR detector Parameters
"""
    Return slice defining the illuminated region on the SWIR detector

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