diff_hkl2two_theta, diff_hkl2omega, diff_hkl2chi, diff_hkl2phi, diff_hkl2mu, diff_hkl2gamma, diff_hkl2delta

diff_hkl2two_theta( $h, $k, $l[, $par])
diff_hkl2omega( $h, $k, $l[, $par])
diff_hkl2chi( $h, $k, $l[, $par])
diff_hkl2phi( $h, $k, $l[, $par])
diff_hkl2mu( $h, $k, $l[, $par])
diff_hkl2gamma( $h, $k, $l[, $par])
diff_hkl2delta( $h, $k, $l[, $par])

Returns the angle that corresponds to hkl. The meaning of the optional parameter $par depends on the mode: For the fixed-psi mode it is the psi value, for the fixed-phi mode it is phi and for the fixed-om2 mode it is om2.
$tt = diff_hkl2two_theta( 1, 1, 1);