"skip_plots = False # exit after writing corrected files\n",
"skip_plots = False # exit after writing corrected files\n",
"\n",
"\n",
"# TODO: Remove\n",
"db_module = [\"\"] # ID of module in calibration database, this parameter is ignore in the notebook. TODO: remove from calibration_configurations.\n",
Author: European XFEL Detector Group, Version: 2.0
Author: European XFEL Detector Group, Version: 2.0
Offline Calibration for the Jungfrau Detector
Offline Calibration for the Jungfrau Detector
%% Cell type:code id: tags:
%% Cell type:code id: tags:
``` python
``` python
in_folder="/gpfs/exfel/exp/SPB/202130/p900204/raw"# the folder to read data from, required
in_folder="/gpfs/exfel/exp/SPB/202130/p900204/raw"# the folder to read data from, required
out_folder="/gpfs/exfel/data/scratch/ahmedk/test/remove"# the folder to output to, required
out_folder="/gpfs/exfel/data/scratch/ahmedk/test/remove"# the folder to output to, required
run=112# run to process, required
run=112# run to process, required
sequences=[-1]# sequences to correct, set to [-1] for all, range allowed
sequences=[-1]# sequences to correct, set to [-1] for all, range allowed
sequences_per_node=1# number of sequence files per cluster node if run as slurm job, set to 0 to not run SLURM parallel
sequences_per_node=1# number of sequence files per cluster node if run as slurm job, set to 0 to not run SLURM parallel
# Parameters used to access raw data.
# Parameters used to access raw data.
karabo_id="SPB_IRDA_JF4M"# karabo prefix of Jungfrau devices
karabo_id="SPB_IRDA_JF4M"# karabo prefix of Jungfrau devices
karabo_da=['JNGFR01','JNGFR02','JNGFR03','JNGFR04','JNGFR05','JNGFR06','JNGFR07','JNGFR08']# data aggregators
karabo_da=['JNGFR01','JNGFR02','JNGFR03','JNGFR04','JNGFR05','JNGFR06','JNGFR07','JNGFR08']# data aggregators
receiver_template="JNGFR{:02d}"# Detector receiver template for accessing raw data files. e.g. "JNGFR{:02d}"
receiver_template="JNGFR{:02d}"# Detector receiver template for accessing raw data files. e.g. "JNGFR{:02d}"
instrument_source_template='{}/DET/{}:daqOutput'# template for source name (filled with karabo_id & receiver_id). e.g. 'SPB_IRDA_JF4M/DET/JNGFR01:daqOutput'
instrument_source_template='{}/DET/{}:daqOutput'# template for source name (filled with karabo_id & receiver_id). e.g. 'SPB_IRDA_JF4M/DET/JNGFR01:daqOutput'
ctrl_source_template='{}/DET/CONTROL'# template for control source name (filled with karabo_id_control)
ctrl_source_template='{}/DET/CONTROL'# template for control source name (filled with karabo_id_control)
karabo_id_control=""# if control is on a different ID, set to empty string if it is the same a karabo-id
karabo_id_control=""# if control is on a different ID, set to empty string if it is the same a karabo-id
# Parameters for calibration database.
# Parameters for calibration database.
use_dir_creation_date=True# use the creation data of the input dir for database queries
use_dir_creation_date=True# use the creation data of the input dir for database queries
cal_db_interface="tcp://max-exfl016:8017#8025"# the database interface to use
cal_db_interface="tcp://max-exfl016:8017#8025"# the database interface to use
cal_db_timeout=180000# timeout on caldb requests
cal_db_timeout=180000# timeout on caldb requests
# Parameters affecting corrected data.
# Parameters affecting corrected data.
overwrite=True# set to True if existing data should be overwritten
overwrite=True# set to True if existing data should be overwritten
relative_gain=True# do relative gain correction
relative_gain=True# do relative gain correction
plt_images=100# Number of images to plot after applying selected corrections.
plt_images=100# Number of images to plot after applying selected corrections.
limit_images=0# ONLY FOR TESTING. process only first N images, Use 0 to process all.
limit_images=0# ONLY FOR TESTING. process only first N images, Use 0 to process all.
# Parameters for retrieving calibration constants
# Parameters for retrieving calibration constants
manual_slow_data=False# if true, use manually entered bias_voltage and integration_time values
manual_slow_data=False# if true, use manually entered bias_voltage and integration_time values
integration_time=4.96# integration time in us, will be overwritten by value in file
integration_time=4.96# integration time in us, will be overwritten by value in file
gain_setting=0# 0 for dynamic gain, 1 for dynamic HG0, will be overwritten by value in file
gain_setting=0# 0 for dynamic gain, 1 for dynamic HG0, will be overwritten by value in file
gain_mode=0# 0 for runs with dynamic gain setting, 1 for fixgain. It will be overwritten by value in file, if manual_slow_data is set to True.
gain_mode=0# 0 for runs with dynamic gain setting, 1 for fixgain. It will be overwritten by value in file, if manual_slow_data is set to True.
mem_cells=0# leave memory cells equal 0, as it is saved in control information starting 2019.
mem_cells=0# leave memory cells equal 0, as it is saved in control information starting 2019.
bias_voltage=180# will be overwritten by value in file
bias_voltage=180# will be overwritten by value in file
# Parameters for plotting
# Parameters for plotting
skip_plots=False# exit after writing corrected files
skip_plots=False# exit after writing corrected files
# TODO: Remove
db_module=[""]# ID of module in calibration database, this parameter is ignore in the notebook. TODO: remove from calibration_configurations.