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.
This is async function - one needs to use POST /wait_till_done to ensure operation is done.
| 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 |
| summation | integer <int64> [ 1 .. 256 ] Default: 1 FPGA frame summation. For summation above two 32-bit pixel format will be used, unless explicitly specified. Frame summation factor applies only to conversion mode (assumed as 1 for raw data). In XFEL mode: summation happens for frames collected with multiple triggers. Ignored for storage cells (assumed as 1). |
| 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] |
| photon_energy_keV required | number <float> >= 0 Used to calculate /entry/beam/incident_wavelength in NXmx Incident photon 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 |
| sample_name required | string /entry/sample/name in NXmx Sample name |
| fpga_output | string Default: "auto" Enum: "auto" "int32" "int16" "uint32" "uint16" FPGA output data type |
| compression | string Default: "bslz4" Enum: "bslz4" "bszstd" "bszstd_rle" "none" |
| 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 | string Header appendix, added as user_data to start message |
| image_appendix | string Image appendix, added as user_data to image message |
| photon_energy_multiplier | number <float> [ 0.015625 .. 4 ] Default: 1 For JUNGFRAU conversion it is possible to multiply energy by a given factor to get fractional/multiplied photon counts |
| 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. |
object Units of angstrom and degree |
{- "images_per_trigger": 1,
- "ntrigger": 1,
- "summation": 1,
- "beam_x_pxl": 0.1,
- "beam_y_pxl": 0.1,
- "detector_distance_mm": 0.1,
- "photon_energy_keV": 0.1,
- "file_prefix": "",
- "images_per_file": 1000,
- "space_group_number": 0,
- "sample_name": "string",
- "fpga_output": "auto",
- "compression": "bslz4",
- "total_flux": 0.1,
- "transmission": 1,
- "omega": {
- "step": 0.1,
- "start": 50,
- "vector": [
- 0,
- 0,
- 0
]
}, - "header_appendix": "string",
- "image_appendix": "string",
- "photon_energy_multiplier": 1,
- "data_reduction_factor_serialmx": 1,
- "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 long period of time, the procedure is provided with a timeout of 5 seconds.
{- "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> >= 450 Interval between consecutive frames. |
| 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. |
| storage_cell_count | integer <int64> [ 1 .. 16 ] Default: 1 |
| 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 .. 128 ] Default: 1 |
| collect_raw_data | boolean Default: false Turn off conversion of pixel read-out to photon count |
| pedestal_g0_frames | integer <int64> >= 0 |
| pedestal_g1_frames | integer <int64> >= 0 |
| pedestal_g2_frames | integer <int64> >= 0 |
| storage_cell_delay_us | number <float> Delay between two storage cells [us] |
| detector_trigger_delay_us | number <float> Delay between TTL trigger and acquisition start [us] |
| fixed_gain_g1 | boolean Default: false Fix gain to G1 (can be useful for storage cells) |
| use_gain_hg0 | boolean Default: false Use high G0 (for low energy applications) |
{- "frame_time_us": 450,
- "count_time_us": 0,
- "storage_cell_count": 1,
- "internal_frame_generator": false,
- "internal_frame_generator_images": 1,
- "collect_raw_data": false,
- "pedestal_g0_frames": 0,
- "pedestal_g1_frames": 0,
- "pedestal_g2_frames": 0,
- "storage_cell_delay_us": 0.1,
- "detector_trigger_delay_us": 0.1,
- "fixed_gain_g1": false,
- "use_gain_hg0": false
}{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}{- "frame_time_us": 450,
- "count_time_us": 0,
- "storage_cell_count": 1,
- "internal_frame_generator": false,
- "internal_frame_generator_images": 1,
- "collect_raw_data": false,
- "pedestal_g0_frames": 0,
- "pedestal_g1_frames": 0,
- "pedestal_g2_frames": 0,
- "storage_cell_delay_us": 0.1,
- "detector_trigger_delay_us": 0.1,
- "fixed_gain_g1": false,
- "use_gain_hg0": false
}Can be done anytime, also while data collection is running
| enable required | boolean Default: true Enable spot finding |
| indexing required | boolean Default: true Enable indexing |
| 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,
- "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,
- "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).
| number | integer <int64> [ 0 .. 127 ] Image number 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"
}Array of objects (roi_box) <= 32 items |
{- "rois": [
- {
- "name": "string",
- "min_x_pxl": 0,
- "max_x_pxl": 0,
- "min_y_pxl": 0,
- "max_y_pxl": 0
}
]
}{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}required | Array of objects (roi_circle) <= 32 items |
{- "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) |
{- "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) |
{- "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) |
{- "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) |
{- "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) |
{- "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) |
{- "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) |
{- "title": "string",
- "plot": [
- {
- "title": "",
- "x": [
- 0.1
], - "y": [
- 0.1
]
}
]
}{- "file_prefix": "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 ] Quality of JPEG image (100 - highest; 0 - lowest) |
| show_indexed | boolean Preview indexed images only |
| resolution_ring | number <float> [ 0.1 .. 100 ] |
{- "saturation": 65535,
- "show_spots": true,
- "show_roi": false,
- "jpeg_quality": 100,
- "show_indexed": true,
- "resolution_ring": 0.1
}{- "msg": "Detector in wrong state",
- "reason": "WrongDAQState"
}