"karabo_id = \"FXE_XAD_JF500K\" # karabo prefix of Jungfrau devices\n",
"karabo_da = ['JNGFR03'] # data aggregators\n",
"receiver_template = \"JNGFR{:02d}\" # Detector receiver template for accessing raw data files. e.g. \"JNGFR{:02d}\"\n",
"instrument_source_template = '{}/DET/{}:daqOutput' # template for source name (filled with karabo_id & receiver_id). e.g. 'SPB_IRDA_JF4M/DET/JNGFR01:daqOutput'\n",
"ctrl_source_template = '{}/DET/CONTROL' # template for control source name (filled with karabo_id_control)\n",
...
...
@@ -60,6 +60,7 @@
"\n",
"# Parameters for ROI selection and reduction\n",
"roi_definitions = [-1] # List with groups of 6 values defining ROIs, e.g. [3, 120, 180, 200, 550, -2] for module 3 (JNGFR03), slice 120:180, 200:550, average along axis -2 (slow scan, or -1 for fast scan)\n",
"roi_threshold = -1 # Corrected pixels below the threshold will be excluded from ROI projections. Set to -1 to include all pixels.\n",
Author: European XFEL Detector Group, Version: 2.0
Offline Calibration for the Jungfrau Detector
%% Cell type:code id: tags:
``` python
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
run=91# run to process, required
in_folder="/gpfs/exfel/exp/FXE/202301/p003279/raw"# the folder to read data from, required
out_folder="/gpfs/exfel/data/scratch/kluyvert/jf-corr-p3279-r275"# the folder to output to, required
run=275# run to process, required
metadata_folder=""# Directory containing calibration_metadata.yml when run by xfel-calibrate
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
# Parameters used to access raw data.
karabo_id="SPB_IRDA_JF4M"# karabo prefix of Jungfrau devices
karabo_da=['JNGFR01','JNGFR02','JNGFR03','JNGFR04','JNGFR05','JNGFR06','JNGFR07','JNGFR08']# data aggregators
karabo_id="FXE_XAD_JF500K"# karabo prefix of Jungfrau devices
karabo_da=['JNGFR03']# data aggregators
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'
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
# Parameters for calibration database.
cal_db_interface="tcp://max-exfl-cal001:8017#8025"# the database interface to use
cal_db_timeout=180000# timeout on caldb requests
creation_time=""# To overwrite the measured creation_time. Required Format: YYYY-MM-DD HR:MN:SC e.g. "2022-06-28 13:00:00"
# Parameters affecting corrected data.
relative_gain=True# do relative gain correction.
strixel_sensor=False# reordering for strixel detector layout.
strixel_double_norm=2.0# normalization to use for double-size pixels, only applied for strixel sensors.
limit_trains=0# ONLY FOR TESTING. process only first N trains, Use 0 to process all.
chunks_ids=32# HDF chunk size for memoryCell and frameNumber.
chunks_data=1# HDF chunk size for pixel data in number of frames.
# Parameters for retrieving calibration constants
manual_slow_data=False# if true, use manually entered bias_voltage, integration_time, gain_setting, and gain_mode values
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_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=-1# Set mem_cells to -1 to automatically use the value stored in RAW data.
bias_voltage=180# will be overwritten by value in file
# Parameters for plotting
skip_plots=False# exit after writing corrected files
plot_trains=500# Number of trains to plot for RAW and CORRECTED plots. Set to -1 to automatically plot all trains.
cell_id_preview=15# cell Id used for preview in single-shot plots
# Parameters for ROI selection and reduction
roi_definitions=[-1]# List with groups of 6 values defining ROIs, e.g. [3, 120, 180, 200, 550, -2] for module 3 (JNGFR03), slice 120:180, 200:550, average along axis -2 (slow scan, or -1 for fast scan)
roi_threshold=-1# Corrected pixels below the threshold will be excluded from ROI projections. Set to -1 to include all pixels.