np.set_printoptions(precision=4) if (len(sys.argv)!=11): print sys.argv[0]+' (top|bottom) noballs.PRT balls.PRT modules.PRT L1front.PRT L1back.PRT L2front.PRT L2back.PRT L3front.PRT L3back.PRT' sys.exit() null_basis = ogp_util.make_basis(np.array([0.0, 0.0, 0.0]), #ball basis in ball frame np.array([1.0, 0.0, 0.0]), np.array([0.0, 1.0, 0.0])) side = sys.argv[1] if (side=='top'): dz = (11.973-0.5-0.375-0.3125)*25.4 p0 = [-47.0,8.5,96.0,0.0,0.0,0.0] l5_basis = ogp_util.make_pin_basis(np.array([0.0, 0.0, 0.0]), #pin basis in U-channel survey frame np.array([1.0, 0.0, 0.0]), np.array([0.0, 0.0, 1.0])) modulesurvey_basis = ogp_util.make_basis(np.array([0.0, 0.0, 0.0]), #ball basis in module survey frame np.array([1.0, 0.0, 0.0]), np.array([0.0, 0.0, -1.0])) is_top = 1 elif (side=='bottom'): dz = (11.973-0.5-0.375+0.3125)*25.4 p0 = [-45.0,-8.5,104.0,0.0,0.0,0.0] l5_basis = ogp_util.make_pin_basis(np.array([0.0, 0.0, 0.0]), np.array([-1.0, 0.0, 0.0]), np.array([0.0, 0.0, 1.0])) modulesurvey_basis = ogp_util.make_basis(np.array([0.0, 0.0, 0.0]), np.array([-1.0, 0.0, 0.0]), np.array([0.0, 0.0, 1.0])) is_top = -1
np.set_printoptions(precision=4) if (len(sys.argv)!=11): print sys.argv[0]+' (top|bottom) noballs.PRT balls.PRT modules.PRT L1front.PRT L1back.PRT L2front.PRT L2back.PRT L3front.PRT L3back.PRT ' sys.exit() null_basis = ogp_util.make_basis(np.array([0.0, 0.0, 0.0]), #ball basis in ball frame np.array([1.0, 0.0, 0.0]), np.array([0.0, 1.0, 0.0])) side = sys.argv[1] if (side=='top'): dz = (11.973-0.5-0.375-0.3125)*25.4 p0 = [-47.0,8.5,96.0,0.0,0.0,0.0] l2_basis = ogp_util.make_pin_basis(np.array([0.0, 0.0, 0.0]), #pin basis in U-channel survey frame np.array([1.0, 0.0, 0.0]), np.array([0.0, 0.0, 1.0])) modulesurvey_basis = ogp_util.make_basis(np.array([0.0, 0.0, 0.0]), #ball basis in module survey frame np.array([1.0, 0.0, 0.0]), np.array([0.0, 0.0, -1.0])) is_top = 1 elif (side=='bottom'): dz = (11.973-0.5-0.375+0.3125)*25.4 p0 = [-45.0,-8.5,104.0,0.0,0.0,0.0] l2_basis = ogp_util.make_pin_basis(np.array([0.0, 0.0, 0.0]), np.array([-1.0, 0.0, 0.0]), np.array([0.0, 0.0, 1.0])) modulesurvey_basis = ogp_util.make_basis(np.array([0.0, 0.0, 0.0]), np.array([-1.0, 0.0, 0.0]), np.array([0.0, 0.0, 1.0])) is_top = -1
if (len(sys.argv) != 11): print sys.argv[ 0] + ' (top|bottom) noballs.PRT balls.PRT modules.PRT L1front.PRT L1back.PRT L2front.PRT L2back.PRT L3front.PRT L3back.PRT' sys.exit() null_basis = ogp_util.make_basis( np.array([0.0, 0.0, 0.0]), #ball basis in ball frame np.array([1.0, 0.0, 0.0]), np.array([0.0, 1.0, 0.0])) side = sys.argv[1] if (side == 'top'): dz = (11.973 - 0.5 - 0.375 - 0.3125) * 25.4 p0 = [-47.0, 8.5, 96.0, 0.0, 0.0, 0.0] l5_basis = ogp_util.make_pin_basis( np.array([0.0, 0.0, 0.0]), #pin basis in U-channel survey frame np.array([1.0, 0.0, 0.0]), np.array([0.0, 0.0, 1.0])) modulesurvey_basis = ogp_util.make_basis( np.array([0.0, 0.0, 0.0]), #ball basis in module survey frame np.array([1.0, 0.0, 0.0]), np.array([0.0, 0.0, -1.0])) is_top = 1 elif (side == 'bottom'): dz = (11.973 - 0.5 - 0.375 + 0.3125) * 25.4 p0 = [-45.0, -8.5, 104.0, 0.0, 0.0, 0.0] l5_basis = ogp_util.make_pin_basis(np.array([0.0, 0.0, 0.0]), np.array([-1.0, 0.0, 0.0]), np.array([0.0, 0.0, 1.0])) modulesurvey_basis = ogp_util.make_basis(np.array([0.0, 0.0, 0.0]), np.array([-1.0, 0.0, 0.0]), np.array([0.0, 0.0, 1.0]))