def get_crpix(proj_crpix1, proj_crpix2, Xcell, Ycell, x, y):
    """
    Compute CRPIX1 and CRPIX2 for cell based on the CRPIX values
    of the projcell.
    """
    x_center, y_center = 5, 5
    cprix1 = proj_crpix1 + (x_center - x) * (Xcell - 480)
    crpix2 = proj_crpix2 + (y_center - y) * (Ycell - 480)

    return cprix1, crpix2