Project

General

Profile

Falcon 4 linear mode

Added by Trishant Umrekar about 2 years ago

Hello,

Is there a function to switch between linear and counting for the Falcon 4 in the preset editor? The only way I can see to do it right now is to add a new camera to Leginon with linear enabled - for which I would need to re-do the appropriate (identical) calibrations.

Best regards,
Trishant


Replies (2)

RE: Falcon 4 linear mode - Added by Anchi Cheng about 2 years ago

No, linear mode (Instrument Falcon4) and counted mode (Instrument Falcon4EC) are considered different camera in Leginon and are tied to different calibrations.

Let's say your Falcon4 is on Glacios

add Falcon4 in instruments.cfg on your microscope pc.

add Falcon4 camera in feicam.py

class Falcon4(Falcon3):
  name = 'Falcon4EC'
  camera_name = 'BM-Falcon'
  binning_limits = [1,2,4]
  electron_counting = False
  intensity_averaged = False
  base_frame_time = 0.02907 # seconds
  physical_frame_rate = 250 # rolling shutter frames per second

I am not sure about intensity_averaged, though. It needs testing but I am having a hard time getting scope time for this. We pretty much use only counted mode. Although someone suggested that we use linear mode for gr image acquisition.

You can do the test for me after you've performed the next step. First set it to False. Then acquire a linear mode image in Leginon navigation or correction node. Note the mean value of the intensity. After that, double the exposure time without saturating the camera and see if the mean value of the image intensity also doubles. If not, you have a case that intensity_averaged needs to be set to True.

register the camera in database by making a preset that uses the camera.

export_leginon_cal.py

Usage export_leginon_cal.py source_database_hostname source_camera_hosthame camera_name <source_tem_name>
Example python ../export_leginon_cal.py your_db_hostname Falcon4EC your_camera_host Glacios

The output should be cal_your_tem_host+Glacios+your_camera_host+Falcon4EC.json

rename the output json file to replace Facon4EC to Falcon4 so it becomes

cal_your_tem_host+Glacios+your_camera_host+Falcon4.json

import_leginon_cal.py

Usage import_leginon_cal.py database_hostname camera_cal_json_file
Example python ../import_leginon_cal.py your_db_hostname cal_your_tem_host+Glacios+your_camera_host+Falcon4.json

Hope this makes sense.

RE: Falcon 4 linear mode - Added by Trishant Umrekar about 2 years ago

Hi Anchi,

Apart from a few name changes (camera_name=EF-Falcon, microscope name EFGlacios), what you suggested worked fine. The camera seems to be intensity averaged based on a few test images, so I have set that to true.

Thanks!

    (1-2/2)