728
Comment:
|
791
|
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()) # Another way of making a projection.. 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 # Another way of making a projection..
8 t = Transform({"type":"eman","alt":15})
9 proj2 = a.project("standard",t)
10 display([proj,proj2])