Differences between revisions 4 and 5
Revision 4 as of 2009-03-28 16:06:52
Size: 800
Comment:
Revision 5 as of 2009-03-28 16:07:19
Size: 791
Comment:
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
# rotate about the x xaxis before projecting... # Another way of making a projection..

To make a projection you must have your 3D model loaded into python, and you must be able to define your projection direction as a Transform object. See Using the EMAN2 Transform class and the Transform turorial page for more information on the Transform object. Also, for more information on Euler angles see the Sparx wiki page.

   1 # get a test model
   2 a = test_image_3d(1)
   3 # alternatively load yours from disk
   4 a = EMData("mymodel.mrc")
   5 # make a projection along the z axis
   6 proj = a.project("standard",Transform())
   7 # Another way of making a projection..
   8 t = Transform({"type":"eman","alt":15})
   9 proj2 = a.project("standard",t) 
  10 display([proj,proj2])

EMAN2/Tutorials/make_a_projection (last edited 2022-02-18 00:31:06 by TunayDurmaz)