def rc_to_xy(row, col, rows):
    """
    Convert from (row, col) coordinates (eg: numpy array) to (x, y) coordinates (bottom left = 0,0)

    (x, y) convention

    * (0,0) in bottom left
    * x +ve to the right
    * y +ve up

    (row,col) convention:

    * (0,0) in top left
    * row +ve down
    * col +ve to the right

    Args:
        row (int): row coordinate to be converted
        col (int): col coordinate to be converted
        rows (int): Total number of rows

    Returns:
        tuple: (x, y)
    """
    x = col
    y = rows - row - 1
    return x, y