⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Leginon
All Projects
Leginon
Overview
Activity
Roadmap
Issues
News
Documents
Wiki
Forums
Files
Download (569 Bytes)
Make DE movie stack
» correctstack.py
Anchi Cheng
, 06/18/2012 09:39 PM
#!/usr/bin/env python
import
sys
from
appionlib
import
apDDprocess
,
apDatabase
from
pyami
import
mrc
if
__name__
==
'__main__'
:
dd
=
apDDprocess
.
DirectDetectorProcessing
()
if
len
(
sys
.
argv
)
!=
2
:
print
'Usage: correctframes.py image'
print
' image (str or int): imagefilename or imageid'
sys
.
exit
()
imagevalue
=
sys
.
argv
[
1
]
try
:
imageid
=
int
(
imagevalue
)
dd
.
setImageId
(
imageid
)
except
ValueError
:
imgtree
=
apDatabase
.
getSpecificImagesFromDB
([
imagevalue
])
dd
.
setImageData
(
imgtree
[
0
])
stackpath
=
dd
.
makeCorrectedRawFrameStack
(
'.'
)
print
stackpath
« Previous
1
2
Next »
(2-2/2)
Loading...