Falcon raw frame saving » History » Version 11
Anchi Cheng, 08/11/2014 08:46 PM
1 | 1 | Anchi Cheng | h1. Falcon raw frame saving |
---|---|---|---|
2 | |||
3 | 2 | Anchi Cheng | Falcon II base frame (the frame defined by the camera rolling shutter) rate is ~ 18 frames per second. |
4 | 1 | Anchi Cheng | |
5 | 2 | Anchi Cheng | Raw frame saving can be achieved either with an custom hardware modification as designed at MRC-LMB or directly through FEI "Inermediate Image" tool. We only have experience in latter. |
6 | 1 | Anchi Cheng | |
7 | 2 | Anchi Cheng | |
8 | h2. Saving raw frame in Leginon |
||
9 | |||
10 | 1. Activate "Store intermediate images" option in C:\Titan\Exe\IntermediateImageTool.exe |
||
11 | 5 | Anchi Cheng | !FalconIntermediateImageTool.png! |
12 | 2 | Anchi Cheng | 2. Edit the camera configuration of the imaging condition preset that you'd like to save frames like this: |
13 | !FalconSaveframe.png! |
||
14 | 7 | Anchi Cheng | * Frame saving should only be used on the 4096x4096 bin 1 camera configuration. |
15 | * *Exposure time* is the total integration time of the camera image returned to Leginon. This should be approximately equal or higher than the mid-point exposure time of the last base frame saved. |
||
16 | 8 | Anchi Cheng | * *Frames to Use*, defines the way base frames are saved in the saved frame bins as explained in the next section. This is the only input that that affects the frame saving. "Exposure Time per Frame" and "Readout Delay" are ignored in the algorithm for this camera. |
17 | 6 | Anchi Cheng | |
18 | 2 | Anchi Cheng | Activate the checkbox "Save Frames" to use the configuration when the preset is used. |
19 | |||
20 | 1 | Anchi Cheng | h3. Configure frame saving using "Use Frames" settings |
21 | |||
22 | 2 | Anchi Cheng | Falcon Intermediate Image Tool allows base frames to be saved in 7 frame bins. |
23 | |||
24 | Frame number 0 that started readout as the beam shutter is open is usually discarded. |
||
25 | |||
26 | The format of this input is: (first_frame_number, first_distributed_frame_number, last_frame_number) |
||
27 | |||
28 | Frame number starts from 0 but frame 0 is normally discarded. |
||
29 | 10 | Anchi Cheng | |parameter|description|example value| |
30 | 2 | Anchi Cheng | |first_frame_number|The base frame number where the frame saving starts|1| |
31 | |first_distributed_frame_number|Base frames before this will each occupies one saved frame bin. Starting from this frame number, Leginon will attempt to put the same number of base frames in each remaining saved frame bin.|2| |
||
32 | |last_frame_number|The last base frame number to be saved.|17| |
||
33 | |||
34 | 1 | Anchi Cheng | !falcon_frame_bin.png! |
35 | 6 | Anchi Cheng | This figure shows how the 17 frames are put into 7 saved frame bins according to a settings of (1,2,17) |
36 | The first bin includes frame 1 only. The algorithm takes the remaining 16 base frames and divide them into (7-1)=6 bins. As a result, each bin contains at least 2 base frames. The remaining (17 - 1 - 2*6) = 4 base frames are put in the last four bins since these are less likely to have motion that requires correction. |
||
37 | 9 | Anchi Cheng | |
38 | {{include(Falcon_raw_frame_saving_configuration_xml)}} |
||
39 | 11 | Anchi Cheng | |
40 | h2. File location: |
||
41 | |||
42 | The raw frame files are saved in |
||
43 | |||
44 | <pre> |
||
45 | E:\\frames\\ |
||
46 | </pre> |
||
47 | |||
48 | The file location is determined in pyscope/falconframe.py in the statement |
||
49 | <pre> |
||
50 | self.base_frame_path = 'E:\\frames' |
||
51 | </pre> |
||
52 | You must create this parent directory manually before starting saving the frames. Saving the raw frame file directly on to a network drive has not worked for us. |
||
53 | |||
54 | Each set of raw frame is saved in a folder identified by the date and a unique number. This is set by Leginon in pyscope/falconframe.py. |
||
55 | Leginon retrieve this and saved in its database so that [[DDD_raw_frame_file_transfer|rawtransfer.py]] script can transfer it to the Leginon rawdata directory under the same session. |