diff --git a/script/daq/daq1-orient.py b/script/daq/daq1-orient.py new file mode 100644 index 0000000..cfde49c --- /dev/null +++ b/script/daq/daq1-orient.py @@ -0,0 +1,63 @@ +###################################################################################################\ +#Orientation +################################################################################################### + +""" + # H K L ov alp del gam nu dev'n + - - - - --- --- --- --- --- ----- + 1 0.0000 1.0000 2.0000 93.1159 9.7280 9.7490 19.5860 0.0000 + 0.0000 1.0000 2.0000 93.1295 9.7212 9.7488 19.5860 0.0000 0.0000 +------------------------------------------------ + 2 2.0000 2.0000 2.0000 57.7252 9.6050 27.7006 20.9322 0.0000 + 2.0000 2.0000 2.0000 57.5840 9.8097 27.7194 20.9065 0.0000 0.0000 +------------------------------------------------ + 3 2.0000 0.0000 2.0000 8.6687 9.6023 19.4996 20.2618 0.0000 + 2.0000 0.0000 2.0000 8.4510 9.8217 19.5132 20.2488 0.0000 0.0000 +------------------------------------------------ + +Orientation Matrix by Row: + +Row 1: 0.81374 0.02138 0.00228 +Row 2: -0.02199 0.81543 0.00123 +Row 3: 0.00784 -0.00100 0.81347 + +1874.X04V> wh + +H K L = 2 0 2 +BetaIn = 9.8218 BetaOut = 9.8218 +Lambda = 1.305 + + omegaV alpha delta gamma nu + 8.6687 9.6022 19.4996 20.2617 0.0000 + +""" + +#help(ub.ub) +ub.listub() + +#alpha delta gamma omegaV + +ub.newub('test') + +ub.setub([[0.81374,0.02138,0.00228], [-0.02199,0.81543,0.00123], [0.00784,-0.00100,0.81347]]) + + +""" +ub.setlat('cubic', 7.723, 7.707, 7.723, 90.0, 89.265, 90.0) +en = 9.5 +#ub.addref([0, 0, 2], [9.78, 9.749, 19.586, 93.1159], en) +#"mu", "delta", "gam", "eta" +ub.addref([0, 1, 2], [9.728, 9.749, 19.586, 93.1159], en) +ub.addref([2, 2, 2], [9.605, 27.7, 20.932, 57.725], en) +ub.addref([2, 0, 2], [9.602, 19.499, 20.262, 8.669], en) +""" + +#ub.ub() +#ub.trialub() +#ub.calcub() +ub.checkub() + +###################################################################################################\ +#Constraints +################################################################################################### +hkl.con('a_eq_b') \ No newline at end of file