Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2009-03-28 15:52:31
Size: 50
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 1: Line 1:
Describe EMAN2/Tutorials/make_a_projection here. 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 [[Eman2TransformInPython|Using the EMAN2 Transform class]] and the Transform [[EMAN2/Tutorials/RotateTranslate|turorial page ]] for more information on the Transform object. Also, for more information on Euler angles see the [[http://macro-em.org/sparxwiki/Euler_angles| Sparx wiki page]].


{{{#!python
# get a test model
a = test_image_3d(1)
# 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)
display([proj,proj2])
}}}

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)