Download OpenAPI specification:Download
API to control Jungfraujoch developed by the Paul Scherrer Institute (Switzerland). Jungfraujoch is a data acquisition and analysis system for pixel array detectors, primarly PSI JUNGFRAU. Jungfraujoch uses FPGA boards to acquire data at high data rates.
Should be used in two cases:
Inactive stateError state
X-ray shutter must be closed.
This operation will reconfigure network interface of the detector.
During operation of the detector it is recommended to use the POST /pedestal operation instead.
If storage cells are used, the execution time might be few minutes.This is async function - one needs to use POST /wait_till_done to ensure operation is done.
{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}Updates calibration of the JUNGFRAU detector. Must be in Idle state.
X-ray shutter must be closed. Recommended to run once per hour for long integration times (> 100 us).
This is async function - one needs to use POST /wait_till_done to ensure operation is done.
{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}Start data acquisition.
Detector must be in Idle state.
Doesn't run calibration procedure.
When the function returns, detector is ready to accept soft/TTL triggers.
| images_per_trigger | integer <int64> >= 1 Default: 1 For standard synchrotron data collection - this is number of images collected per one TTL trigger For XFEL (pulsed source) - this number is ignored and set to 1 For storage cell mode - this number is ignored and set to number of storage cells |
| ntrigger | integer <int64> >= 1 Default: 1 Number of TTL trigger that the detector is expected to receive during data collection |
| image_time_us | integer <int64> >= 0 Image time.
If not provided (or zero value) the frame time is assumed as default.
Image time must be multiple of frame time; max value is 256 * frame_time. |
| beam_x_pxl required | number <float> /entry/detector/beam_center_x in NXmx Beam center in X direction [pixels] |
| beam_y_pxl required | number <float> /entry/detector/beam_center_y in NXmx Beam center in X direction [pixels] |
| detector_distance_mm required | number <float> >= 0 /entry/detector/distance in NXmx Detector distance [mm] |
| incident_energy_keV required | number <float> [ 0.001 .. 500 ] Used to calculate /entry/beam/incident_wavelength in NXmx Incident particle (photon, electron) energy in keV |
| file_prefix | string Default: "" Prefix for filenames. If left empty, no file will be saved. |
| images_per_file | integer <int64> >= 0 Default: 1000 Number of files in a single HDF5 data file (0 = write all images to a single data file). |
| space_group_number | integer <int64> [ 0 .. 194 ] Default: 0 Number of space group for the crystal. Currently used solely as metadata, not relevant for image processing done in Jungfraujoch. |
| sample_name | string Default: "" /entry/sample/name in NXmx Sample name |
| compression | string Default: "bslz4" Enum: "bslz4" "bszstd" "bszstd_rle" "none" Compression type for the images transferred over ZeroMQ and saved to HDF5 file. |
| total_flux | number <float> /entry/beam/total_flux in NXmx Flux incident on beam plane in photons per second. In other words this is the flux integrated over area. [photons/s] |
| transmission | number <float> [ 0 .. 1 ] /entry/instrument/attenuator/attenuator_transmission Transmission of attenuator (filter) [no units] |
object (rotation_axis) Definition of a crystal rotation axis | |
| header_appendix | any Header appendix, added as user_data/user to start ZeroMQ message (can be any valid JSON) In general, it is not saved in HDF5 file. However, if values are placed in "hdf5" object, |
| image_appendix | any Image appendix, added as user_data to image ZeroMQ message (can be any valid JSON) Not saved in HDF5 file |
| data_reduction_factor_serialmx | number <float> [ 0 .. 1 ] Default: 1 Rate at which non-indexed images are accepted to be forwarded to writer. Value of 1.0 (default) means that all images are written. Values below zero mean that non-indexed images will be accepted with a given probability. |
| pixel_value_low_threshold | integer <int64> >= 0 Set all counts lower than the value to zero. When the value is set, negative numbers other than error pixel value are always set to zero. Setting to zero is equivalent to turning the option off. |
| run_number | integer <int64> >= 0 Number of run within an experimental session. Transferred over CBOR stream as "series ID", though not saved in HDF5 file. It is highly recommended to keep this number unique for each data collection during experimental series. If not provided, the number will be automatically incremented. |
| run_name | string Unique ID of run. Transferred over CBOR stream as "unique series ID", though not saved in HDF5 file. It is highly recommended to keep this name unique for each data collection during experimental series. If not provided, the name will be automatically generated as number + colon + file_prefix. |
| experiment_group | string Name of group owning the data (e.g. p-group or proposal number). Transferred over CBOR stream, though not saved in HDF5 file. |
| poisson_compression | integer <int64> [ 0 .. 16 ] Enable lossy compression of pixel values that preserves Poisson statistics. Requires to provide a numerical factor SQ. Pixel value P will be transformed to round(sqrt(P) * SQ), with rounding to the closest integer. Compression is turned off if the value is missing or it is set to zero. |
| write_nxmx_hdf5_master | boolean Default: true Write NXmx formatted HDF5 master file. Recommended to use for macromolecular crystallography experiments and to turn off for other experiments. |
| save_calibration | boolean Forward image calibration (at the moment pedestal and pedestal RMS for JUNGFRAU) using the ZeroMQ stream to writer. If parameter is not provided calibration will be saved only if more than 4 images are recorded. |
object Unit cell parameters. Necessary to run indexing. Units of angstrom and degree |
{- "images_per_trigger": 1,
- "ntrigger": 1,
- "image_time_us": 0,
- "beam_x_pxl": 0.1,
- "beam_y_pxl": 0.1,
- "detector_distance_mm": 0.1,
- "incident_energy_keV": 0.001,
- "file_prefix": "",
- "images_per_file": 1000,
- "space_group_number": 0,
- "sample_name": "",
- "compression": "bslz4",
- "total_flux": 0.1,
- "transmission": 1,
- "goniometer": {
- "name": "omega",
- "step": 0.1,
- "start": 50,
- "vector": [
- 1,
- 0,
- 0
]
}, - "header_appendix": null,
- "image_appendix": null,
- "data_reduction_factor_serialmx": 1,
- "pixel_value_low_threshold": 0,
- "run_number": 0,
- "run_name": "string",
- "experiment_group": "string",
- "poisson_compression": 16,
- "write_nxmx_hdf5_master": true,
- "save_calibration": true,
- "unit_cell": {
- "a": 37,
- "b": 37,
- "c": 78,
- "alpha": 90,
- "beta": 90,
- "gamma": 90
}
}{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}Block execution of external script till initialization, data collection or pedestal is finished. Running this command does not affect (cancel) running data collection, it is only to ensure synchronous execution of other software.
To not block web server for a indefinite period of time, the procedure is provided with a timeout. Extending timeout is possible, but requires to ensure safety that client will not close the connection and retry the connection.
| timeout | integer [ 0 .. 3600 ] Default: 60 Timeout in seconds (0 == immediate response) |
{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}Command will inform FPGA network card to stop pedestal or data collection at the current stage.
Any frame that is currently being processed by CPU will be finished and sent to writer.
Given the command is making sure to gracefully stop data acquisition and detector, it might take some time to switch back after command finished to Idle state.
If data collection is not running, the command has no effect.
Should be in Idle or Error state.
Command deactivates data acquisition and turns off detector high voltage and ASIC.
Should be used always before turning off power from the detector.
{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}Detector settings are ones that have effect on calibration, i.e., pedestal has to be collected again after changing these settings.
This can only be done when detector is Idle, Error or Inactive states.
If detector is in Idle state , pedestal procedure will be executed automatically - there must be no X-rays on the detector during the operation.
If detector is in Inactive or Error states, new settings will be saved, but no calibration will be executed.
| frame_time_us required | integer <int64> >= 1 Interval between consecutive frames. This is internal frame time for the JUNGFRAU detector, image time has to be integer multiply of this number. For EIGER detector this is default frame time, not used otherwise |
| count_time_us | integer <int64> Integration time of the detector. If not provided count time will be set to maximum value for a given frame time. |
| internal_frame_generator | boolean Default: false Use internal frame generator in FPGA instead of getting data from a real detector |
| internal_frame_generator_images | integer <int64> [ 1 .. 64 ] Default: 1 Number of images stored in the internal frame generator. |
| detector_trigger_delay_ns | integer <int64> >= 0 Default: 0 Delay between TTL trigger and acquisition start [ns] |
| timing | string (detector_timing) Default: "trigger" Enum: "auto" "trigger" "burst" "gated" |
| eiger_threshold_keV | number <float> [ 1 .. 100 ] Threshold for the EIGER detector. If value is provided, it will be used for all subsequent acquisitions, irrespective of beam energy. If value is not provided, threshold will be determined on start of acquisition as half of incident energy. This might lead to increased start time. |
| eiger_bit_depth | integer <int64> Enum: 8 16 32 Bit depth of EIGER read-out. If value is not provided bit depth is adjusted automatically based on the image time. |
| jungfrau_pedestal_g0_frames | integer <int64> >= 0 Default: 2000 |
| jungfrau_pedestal_g1_frames | integer <int64> >= 0 Default: 300 |
| jungfrau_pedestal_g2_frames | integer <int64> >= 0 Default: 300 |
| jungfrau_pedestal_min_image_count | integer <int64> >= 32 Default: 128 Minimum number of collected images for pedestal to consider it viable |
| jungfrau_storage_cell_count | integer <int64> [ 1 .. 16 ] Default: 1 |
| jungfrau_storage_cell_delay_ns | integer <int64> >= 2100 Default: 5000 Delay between two storage cells [ns] |
| jungfrau_fixed_gain_g1 | boolean Default: false Fix gain to G1 (can be useful for storage cells) |
| jungfrau_use_gain_hg0 | boolean Default: false Use high G0 (for low energy applications) |
{- "frame_time_us": 1,
- "count_time_us": 0,
- "internal_frame_generator": false,
- "internal_frame_generator_images": 1,
- "detector_trigger_delay_ns": 0,
- "timing": "auto",
- "eiger_threshold_keV": 1,
- "eiger_bit_depth": 8,
- "jungfrau_pedestal_g0_frames": 2000,
- "jungfrau_pedestal_g1_frames": 300,
- "jungfrau_pedestal_g2_frames": 300,
- "jungfrau_pedestal_min_image_count": 128,
- "jungfrau_storage_cell_count": 1,
- "jungfrau_storage_cell_delay_ns": 5000,
- "jungfrau_fixed_gain_g1": false,
- "jungfrau_use_gain_hg0": false
}{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}{- "frame_time_us": 1,
- "count_time_us": 0,
- "internal_frame_generator": false,
- "internal_frame_generator_images": 1,
- "detector_trigger_delay_ns": 0,
- "timing": "auto",
- "eiger_threshold_keV": 1,
- "eiger_bit_depth": 8,
- "jungfrau_pedestal_g0_frames": 2000,
- "jungfrau_pedestal_g1_frames": 300,
- "jungfrau_pedestal_g2_frames": 300,
- "jungfrau_pedestal_min_image_count": 128,
- "jungfrau_storage_cell_count": 1,
- "jungfrau_storage_cell_delay_ns": 5000,
- "jungfrau_fixed_gain_g1": false,
- "jungfrau_use_gain_hg0": false
}This can only be done when detector is Idle, Error or Inactive states.
| source_name required | string |
| source_type | string Default: "" Type of radiation source. NXmx gives a fixed dictionary, though Jungfraujoch is not enforcing compliance. https://manual.nexusformat.org/classes/base_classes/NXsource.html#nxsource NXsource allows the following: Spallation Neutron Source Pulsed Reactor Neutron Source Reactor Neutron Source Synchrotron X-ray Source Pulsed Muon Source Rotating Anode X-ray Fixed Tube X-ray UV Laser Free-Electron Laser Optical Laser Ion Source UV Plasma Source Metal Jet X-ray |
| instrument_name required | string |
| pulsed_source | boolean Default: false Settings specific to XFEL (e.g., every image has to come from TTL trigger, save pulse ID and event code) |
| electron_source | boolean Default: false Settings specific to electron source (e.g., wavelength definition) |
{- "source_name": "Swiss Light Source",
- "source_type": "Synchrotron X-ray Source",
- "instrument_name": "CristallinaMX",
- "pulsed_source": false,
- "electron_source": false
}{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}This can only be done when detector is Idle, Error or Inactive states.
| summation required | boolean Enable summation of images to a given image_time If disabled images are saved according to original detector speed, but image count is adjusted |
| geometry_transform required | boolean Place module read-out into their location on composed detector and extend multipixels |
| jungfrau_conversion required | boolean Convert pixel value in ADU to photon counts/energy Only affects JUNGFRAU detector |
| jungfrau_conversion_factor_keV | number <float> [ 0.001 .. 500 ] Used to convert energy deposited into pixel to counts If not provided incident_energy_keV is used |
| bit_depth_image | integer <int64> Enum: 8 16 32 Bit depth of resulting image (it doesn't affect the detector read-out value) If not provided value is adjusted automatically |
| signed_output | boolean Controls if pixels have signed output If not provided value is adjusted automatically |
| mask_module_edges required | boolean Default: true Mask 1 pixel on the module boundary |
| mask_chip_edges required | boolean Default: true Mask multipixels on chip boundary |
| jungfrau_mask_pixels_without_g0 | boolean Default: true JUNGFRAU: mask pixels that don't operate in G0, but do operate in G1 and G1. This should be turned off for cases, where detector is operated at room temperature with long exposure time. |
| apply_mask required | boolean Default: false Masked pixels are set to special value in the images produced by Jungfraujoch |
| jungfrau_pedestal_g0_rms_limit | integer <int64> >= 0 Default: 100 Pixels with pedestal G0 RMS above the threshold are marked as masked pixels |
{- "summation": true,
- "geometry_transform": true,
- "jungfrau_conversion": true,
- "jungfrau_conversion_factor_keV": 0.001,
- "bit_depth_image": 8,
- "signed_output": true,
- "mask_module_edges": true,
- "mask_chip_edges": true,
- "jungfrau_mask_pixels_without_g0": true,
- "apply_mask": false,
- "jungfrau_pedestal_g0_rms_limit": 100
}{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}{- "summation": true,
- "geometry_transform": true,
- "jungfrau_conversion": true,
- "jungfrau_conversion_factor_keV": 0.001,
- "bit_depth_image": 8,
- "signed_output": true,
- "mask_module_edges": true,
- "mask_chip_edges": true,
- "jungfrau_mask_pixels_without_g0": true,
- "apply_mask": false,
- "jungfrau_pedestal_g0_rms_limit": 100
}Can be done anytime, also while data collection is running
| enable required | boolean Default: true Enable spot finding. This is temporary setting, i.e. can be changed anytime during data collection. Even if disabled spot finding information will still be send and written, though always with zero spots. |
| indexing required | boolean Default: true Enable indexing. This is temporary setting, i.e. can be changed anytime during data collection. |
| filter_powder_rings | boolean Default: false Filter spots which form powder rings (e.g., ice rings) |
| min_spot_count_powder_ring | integer <int64> >= 5 Minimum number of spots to consider a thin resolution shell (0.01 A^-1) a powder ring and filter out. |
| signal_to_noise_threshold required | number <float> >= 0 |
| photon_count_threshold required | integer <int64> >= 0 |
| min_pix_per_spot required | integer <int64> >= 1 |
| max_pix_per_spot required | integer <int64> >= 1 |
| high_resolution_limit required | number <float> |
| low_resolution_limit required | number <float> |
| indexing_tolerance required | number <float> [ 0 .. 1 ] Acceptance tolerance for spots after the indexing run - the larger the number, the more spots will be accepted |
{- "enable": true,
- "indexing": true,
- "filter_powder_rings": false,
- "min_spot_count_powder_ring": 5,
- "signal_to_noise_threshold": 0.1,
- "photon_count_threshold": 0,
- "min_pix_per_spot": 1,
- "max_pix_per_spot": 1,
- "high_resolution_limit": 0.1,
- "low_resolution_limit": 0.1,
- "indexing_tolerance": 1
}{- "enable": true,
- "indexing": true,
- "filter_powder_rings": false,
- "min_spot_count_powder_ring": 5,
- "signal_to_noise_threshold": 0.1,
- "photon_count_threshold": 0,
- "min_pix_per_spot": 1,
- "max_pix_per_spot": 1,
- "high_resolution_limit": 0.1,
- "low_resolution_limit": 0.1,
- "indexing_tolerance": 1
}Can be done when detector is Inactive or Idle
| polarization_factor | number <float> [ -1 .. 1 ] If polarization factor is provided, than polarization correction is enabled. |
| solid_angle_corr required | boolean Default: true Apply solid angle correction for radial integration |
| high_q_recipA required | number <float> |
| low_q_recipA required | number <float> |
| q_spacing required | number <float> |
{- "polarization_factor": -1,
- "solid_angle_corr": true,
- "high_q_recipA": 0.1,
- "low_q_recipA": 0.1,
- "q_spacing": 0.1
}{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}Load image for internal FPGA generator. This can only happen in Idle state of the detector. Requires binary blob with 16-bit integer numbers of size of detector in raw/converted coordinates (depending on detector settings).
| id | integer <int64> [ 0 .. 127 ] Image id to upload |
Load image for internal FPGA generator. This can only happen in Idle state of the detector. Requires TIFF with 16-bit integer numbers of size of detector in raw/converted coordinates (depending on detector settings).
| id | integer [ 0 .. 127 ] Image ID to upload |
Jungfraujoch allows to control multiple detectors and/or region-of-interests.
The command allows to choose one detector from the list (ID has to be consistent with one provided by GET response).
Changing detector will set detector to Inactive state and will require reinitialization.
| id required | integer <int64> |
{- "id": 1
}{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}{- "detectors": [
- {
- "id": 0,
- "description": "JUNGFRAU 4 Mpixel",
- "serial_number": "JF17T16V01",
- "base_ipv4_addr": "10.10.10.1",
- "udp_interface_count": 2,
- "nmodules": 18,
- "width": 2068,
- "height": 2164,
- "readout_time_us": 0,
- "min_frame_time_us": 0,
- "min_count_time_us": 0
}
], - "current_id": 0
}Jungfraujoch can generate preview message stream on ZeroMQ SUB socket. Here settings of the socket can be adjusted. While the data structure contains also socket_address, this cannot be changed via HTTP and is ignore in PUT request. Options set with this PUT request have no effect on HTTP based preview.
| enabled required | boolean Default: true ZeroMQ preview socket is enabled. |
| period_ms required | integer <int64> Default: 1000 Period for generating preview image sent to the ZeroMQ interface in milliseconds. Default is 1 second. If set to zero, all images will be sent ZeroMQ (should be used only in case of relatively slow data collection). This has no effect on HTTP based preview, which updates always at rate of 1 second. |
| socket_address | string PUB ZeroMQ socket for preview images. This socket operates at a reduced frame rate.
Images are serialized using CBOR.
Address follows ZeroMQ convention for sockets - in practice ipc:// |
{- "enabled": true,
- "period_ms": 1000,
- "socket_address": "string"
}{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}Jungfraujoch can generate metadata message stream on ZeroMQ PUB socket. This stream covers all images. Here settings of the socket can be adjusted. While the data structure contains also socket_address, this cannot be changed via HTTP and is ignore in PUT request.
| enabled required | boolean Default: true ZeroMQ metadata socket is enabled. |
| period_ms required | integer <int64> >= 1 Default: 1000 Period for generating metadata package sent to the ZeroMQ interface in milliseconds. |
| socket_address | string PUB ZeroMQ socket for image metadata information.
Image metadata are serialized using CBOR.
Address follows ZeroMQ convention for sockets - in practice ipc:// |
{- "enabled": true,
- "period_ms": 1000,
- "socket_address": "string"
}{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}[- {
- "pci_dev_id": "string",
- "serial_number": "string",
- "fw_version": "string",
- "base_mac_addr": "string",
- "eth_link_count": 0,
- "eth_link_status": 0,
- "power_usage_W": 0.1,
- "fpga_temp_C": 0.1,
- "hbm_temp_C": 0.1,
- "packets_udp": 0,
- "packets_sls": 0,
- "idle": true
}
]required | object (roi_box_list) List of box ROIs |
required | object (roi_circle_list) List of circular ROIs |
{- "box": {
- "rois": [
- {
- "name": "string",
- "min_x_pxl": 0,
- "max_x_pxl": 0,
- "min_y_pxl": 0,
- "max_y_pxl": 0
}
]
}, - "circle": {
- "rois": [
- {
- "name": "string",
- "center_x_pxl": 0.1,
- "center_y_pxl": 0.1,
- "radius_pxl": 0.1
}
]
}
}{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}Mean intensity for d = 3 - 5 A per image; binning is configurable
| binning | integer Binning of frames for the plot (0 = default binning) |
| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}Number of spots per image; binning is configurable
| binning | integer Binning of frames for the plot (0 = default binning) |
| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}Image indexing rate; binning is configurable
| binning | integer Binning of frames for the plot (0 = default binning) |
| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}Crystal unit cell based on indexing results; binning is configurable
| binning | integer Binning of frames for the plot (0 = default binning) |
| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}Crystal unit cell based on indexing results; binning is configurable
| binning | integer Binning of frames for the plot (0 = default binning) |
| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}Count of error (mean) and saturated (mean/max) pixels per image; binning is configurable
| binning | integer Binning of frames for the plot (0 = default binning) |
| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}Count of strong pixels per image (from spot finding); binning is configurable
| binning | integer Binning of frames for the plot (0 = default binning) |
| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}Sum of ROI rectangle per image; binning is configurable
| binning | integer Binning of frames for the plot (0 = default binning) |
| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}Max count of ROI per image; binning is configurable
| binning | integer Binning of frames for the plot (0 = default binning) |
| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}Number of pixels within a ROI area; pixels with special values (overload, bad pixel) are excluded; multipixels are counted just once; binning is configurable
| binning | integer Binning of frames for the plot (0 = default binning) |
| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}Amount of frames the receiver is behind the FPGA for each image - used for internal debugging; binning is configurable
| binning | integer Binning of frames for the plot (0 = default binning) |
| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}Amount of send buffers available during frame processing - used for internal debugging; binning is configurable
| binning | integer Binning of frames for the plot (0 = default binning) |
| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}Ratio of collected and expected packets per image; binning is configurable
| binning | integer Binning of frames for the plot (0 = default binning) |
| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}| compression | boolean Default: true Enable DEFLATE compression of output data. |
{- "detector": {
- "state": "Idle",
- "powerchip": "PowerOn",
- "server_version": "string",
- "number_of_triggers_left": 0,
- "fpga_temp_degC": [
- 0
], - "high_voltage_V": [
- 0
]
}, - "detector_list": {
- "detectors": [
- {
- "id": 0,
- "description": "JUNGFRAU 4 Mpixel",
- "serial_number": "JF17T16V01",
- "base_ipv4_addr": "10.10.10.1",
- "udp_interface_count": 2,
- "nmodules": 18,
- "width": 2068,
- "height": 2164,
- "readout_time_us": 0,
- "min_frame_time_us": 0,
- "min_count_time_us": 0
}
], - "current_id": 0
}, - "detector_settings": {
- "frame_time_us": 1,
- "count_time_us": 0,
- "internal_frame_generator": false,
- "internal_frame_generator_images": 1,
- "detector_trigger_delay_ns": 0,
- "timing": "auto",
- "eiger_threshold_keV": 1,
- "eiger_bit_depth": 8,
- "jungfrau_pedestal_g0_frames": 2000,
- "jungfrau_pedestal_g1_frames": 300,
- "jungfrau_pedestal_g2_frames": 300,
- "jungfrau_pedestal_min_image_count": 128,
- "jungfrau_storage_cell_count": 1,
- "jungfrau_storage_cell_delay_ns": 5000,
- "jungfrau_fixed_gain_g1": false,
- "jungfrau_use_gain_hg0": false
}, - "image_format_settings": {
- "summation": true,
- "geometry_transform": true,
- "jungfrau_conversion": true,
- "jungfrau_conversion_factor_keV": 0.001,
- "bit_depth_image": 8,
- "signed_output": true,
- "mask_module_edges": true,
- "mask_chip_edges": true,
- "jungfrau_mask_pixels_without_g0": true,
- "apply_mask": false,
- "jungfrau_pedestal_g0_rms_limit": 100
}, - "instrument_metadata": {
- "source_name": "Swiss Light Source",
- "source_type": "Synchrotron X-ray Source",
- "instrument_name": "CristallinaMX",
- "pulsed_source": false,
- "electron_source": false
}, - "data_processing_settings": {
- "enable": true,
- "indexing": true,
- "filter_powder_rings": false,
- "min_spot_count_powder_ring": 5,
- "signal_to_noise_threshold": 0.1,
- "photon_count_threshold": 0,
- "min_pix_per_spot": 1,
- "max_pix_per_spot": 1,
- "high_resolution_limit": 0.1,
- "low_resolution_limit": 0.1,
- "indexing_tolerance": 1
}, - "measurement": {
- "file_prefix": "string",
- "run_number": 0,
- "experiment_group": "string",
- "images_expected": 0,
- "images_collected": 0,
- "images_sent": 0,
- "images_discarded_lossy_compression": 0,
- "max_image_number_sent": 0,
- "collection_efficiency": 1,
- "compression_ratio": 5.3,
- "cancelled": true,
- "max_receiver_delay": 0,
- "indexing_rate": 0.1,
- "detector_width": 0,
- "detector_height": 0,
- "detector_pixel_depth": 2,
- "bkg_estimate": 0.1,
- "unit_cell": "string"
}, - "broker": {
- "state": "Inactive",
- "progress": 1,
- "message": "string",
- "message_severity": "success"
}, - "fpga": [
- {
- "pci_dev_id": "string",
- "serial_number": "string",
- "fw_version": "string",
- "base_mac_addr": "string",
- "eth_link_count": 0,
- "eth_link_status": 0,
- "power_usage_W": 0.1,
- "fpga_temp_C": 0.1,
- "hbm_temp_C": 0.1,
- "packets_udp": 0,
- "packets_sls": 0,
- "idle": true
}
], - "calibration": [
- {
- "module_number": 0,
- "storage_cell_number": 0,
- "pedestal_g0_mean": 0.1,
- "pedestal_g1_mean": 0.1,
- "pedestal_g2_mean": 0.1,
- "gain_g0_mean": 0.1,
- "gain_g1_mean": 0.1,
- "gain_g2_mean": 0.1,
- "masked_pixels": 0
}
], - "zeromq_preview": {
- "enabled": true,
- "period_ms": 1000,
- "socket_address": "string"
}, - "zeromq_metadata": {
- "enabled": true,
- "period_ms": 1000,
- "socket_address": "string"
}, - "pixel_mask": {
- "user_mask": 0,
- "too_high_pedestal_rms": 0,
- "wrong_gain": 0
}, - "roi": {
- "box": {
- "rois": [
- {
- "name": "string",
- "min_x_pxl": 0,
- "max_x_pxl": 0,
- "min_y_pxl": 0,
- "max_y_pxl": 0
}
]
}, - "circle": {
- "rois": [
- {
- "name": "string",
- "center_x_pxl": 0.1,
- "center_y_pxl": 0.1,
- "radius_pxl": 0.1
}
]
}
}
}{- "file_prefix": "string",
- "run_number": 0,
- "experiment_group": "string",
- "images_expected": 0,
- "images_collected": 0,
- "images_sent": 0,
- "images_discarded_lossy_compression": 0,
- "max_image_number_sent": 0,
- "collection_efficiency": 1,
- "compression_ratio": 5.3,
- "cancelled": true,
- "max_receiver_delay": 0,
- "indexing_rate": 0.1,
- "detector_width": 0,
- "detector_height": 0,
- "detector_pixel_depth": 2,
- "bkg_estimate": 0.1,
- "unit_cell": "string"
}Statistics are provided for each module/storage cell separately
[- {
- "module_number": 0,
- "storage_cell_number": 0,
- "pedestal_g0_mean": 0.1,
- "pedestal_g1_mean": 0.1,
- "pedestal_g2_mean": 0.1,
- "gain_g0_mean": 0.1,
- "gain_g1_mean": 0.1,
- "gain_g2_mean": 0.1,
- "masked_pixels": 0
}
]| saturation required | integer <int64> [ 0 .. 65535 ] Saturation value to set contrast in the preview image |
| show_spots | boolean Default: true Show spot finding results on the image |
| show_roi | boolean Default: false Show ROI areas on the image |
| jpeg_quality | integer <int64> [ 0 .. 100 ] Default: 100 Quality of JPEG image (100 - highest; 0 - lowest) |
| show_indexed | boolean Default: false Preview indexed images only |
| show_user_mask | boolean Default: false Show user mask |
| resolution_ring | number <float> [ 0.1 .. 100 ] Default: 0.1 |
{- "saturation": 65535,
- "show_spots": true,
- "show_roi": false,
- "jpeg_quality": 100,
- "show_indexed": false,
- "show_user_mask": false,
- "resolution_ring": 0.1
}{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}Should be in Idle state.
Upload user mask of the detector - this is for example to account for beam stop shadow or misbehaving regions.
If detector is conversion mode the mask can be both in raw (1024x512; stacked modules) or converted coordinates.
In the latter case - module gaps are ignored and don't need to be assigned value.
Mask is expected as binary array (4-byte; unsigned).
0 - good pixel, other value - masked
User mask is stored in NXmx pixel mask (bit 8), as well as used in spot finding and azimuthal integration.
{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}Should be in Idle state.
Upload user mask of the detector - this is for example to account for beam stop shadow or misbehaving regions.
If detector is conversion mode the mask can be both in raw (1024x512; stacked modules) or converted coordinates.
In the latter case - module gaps are ignored and don't need to be assigned value.
Mask is expected as TIFF (4-byte; unsigned).
0 - good pixel, other value - masked
User mask is stored in NXmx pixel mask (bit 8), as well as used in spot finding and azimuthal integration.
User mask is not automatically applied - i.e. pixels with user mask will have a valid pixel value in the images.
{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}