def get_cell_corners(cell:list, width:float, height:float, rel_loc='mid') -> list:
    """
    Returns the corners of a cell (x1, x2, y1, y2).
    
    :param cell: A tuple of lat/Y,lon/X-coordinates of the cell
    :param width: Width of the cell
    :param height: Height of the cell
    :param rel_loc: Which position of the cell does `cell` indicate: center (mid)
    :returns: y1, y2, x1, x2

    :Example:

    """
    y, x = cell

    if rel_loc == 'mid':
        x1 = x - width/2
        x2 = x + width/2
        y1 = y - height/2
        y2 = y + height/2
    elif rel_loc == 'ul':
        x1 = x
        x2 = x + width
        y1 = y - height
        y2 = y
    else:
        raise AttributeError('Invalid rel_loc. Supported: mid, ul')
    
    corners = [
        [y2, x1],
        [y2, x2],
        [y1, x2],
        [y1, x1],
        ]

    return corners