def METHOD_NAME(self, rotation_angle):
    transform_pix2angle = np.array(
        [
            [np.cos(rotation_angle), -np.sin(rotation_angle)],
            [np.sin(rotation_angle), np.cos(rotation_angle)],
        ]
    )  # linear translation matrix of a 90 degree rotation
    ra_at_xy_0, dec_at_xy_0 = transform_pix2angle.dot([-5 / 2, -5 / 2]).T
    kwargs_pixel_rot_spectra = {
        "nx": 5,
        "ny": 5,  # number of pixels per axis
        "ra_at_xy_0": ra_at_xy_0,  # RA at pixel (0,0)
        "dec_at_xy_0": dec_at_xy_0,  # DEC at pixel (0,0)
        "transform_pix2angle": transform_pix2angle,
    }
    spectra_inputs = {
        "image": self.image,
        "transform_pix2angle": kwargs_pixel_rot_spectra["transform_pix2angle"],
        "ra_at_xy0": kwargs_pixel_rot_spectra["ra_at_xy_0"],
        "dec_at_xy0": kwargs_pixel_rot_spectra["dec_at_xy_0"],
    }
    return spectra_inputs