def coord_to_grid(coord, die_size, grid_center):
    """
    Convert a panel coordinate to a grid value.

    Parameters
    ----------
    coord : tuple
        A 2-tuple of (x, y) floating point values for the panel coordinate

    die_size : tuple
        A 2-tuple of (x, y) floating point values for the die size

    grid_center : tuple
        A 2-tuple of (grid_x, grid_y) values that represents the origin of
        the wafer in grid coordinates.

    Returns
    -------
    (grid_x, grid_y) : tuple
        The grid coordinates. Also known as (column, row).
    """
    grid_x = int(round(grid_center[0] + coord[0] / die_size[0]))
    grid_y = int(round(grid_center[1] - coord[1] / die_size[1]))
    return grid_x, grid_y
