Am 17.01.16 um 00:23 schrieb Eric Martz: > x = {gly6:a}.xyz > y = {asp13:a}.xyz > > How do I get one set of XYZ coordinates that is the average of x and y? > The following provides the individual averages of the x,y and z coordinates as a new coordinate set:
---- Example ------------ load =1deh; x={1:A}.xyz; y={2:A}.xyz; ax = [x.x,y.x].average; ay = [x.y,y.y].average; az = [x.z,y.z].average; a = point(ax ay az); show x; show y; show a; ---- Example output ----- x = {16.204833333333337 12.808833333333332 2.968666666666667} y = {14.445142857142857 10.353857142857143 0.37728571428571434} a = {15.324988095238098 11.581345238095238 1.6729761904761906} ------------------------- Eric, is that what you want? Regards, Rolf ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users