Differences between revisions 3 and 4
Revision 3 as of 2009-03-28 16:04:51
Size: 728
Comment:
Revision 4 as of 2009-03-28 16:06:52
Size: 800
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
# get a test model
Line 6: Line 7:
proj = a.project("standard",Transform()) # this makes a projection along the z axis
t = Transform({"type":"eman","alt":15}
proj2 = a.project("standard",t) # now the projection is off axis
# alternatively load yours from disk
a = EMData("mymodel.mrc")
# make a projection along the z axis
proj = a.project("standard",Transform())
# rotate about the x xaxis before projecting...
t = Transform({"type":"eman","alt":15})
proj2 = a.project("standard",t)
Line 11: Line 16:

And more informaion...

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 # rotate about the x xaxis before projecting...
   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)