Merge2cbf: Difference between revisions

661 bytes added ,  8 February 2019
.h5 example
(Created page with "merge2cbf serves to convert frames from a number of detector formats (described at [http://www.mpimf-heidelberg.mpg.de/~kabsch/xds/html_doc/detectors.html]) into the CBF compress...")
 
(.h5 example)
Line 1: Line 1:
merge2cbf serves to convert frames from a number of detector formats (described at [http://www.mpimf-heidelberg.mpg.de/~kabsch/xds/html_doc/detectors.html]) into the CBF compressed file format, and replaces [[2pck]] which understood a few more formats.
merge2cbf serves to convert frames from a number of detector formats (described at [http://www.mpimf-heidelberg.mpg.de/~kabsch/xds/html_doc/detectors.html]) into the CBF compressed file format, and replaces [[2pck]] which understood a few more formats.
Unfortunately these (mini-)CBF files do not have a header with wavelength, origin, distance, ... so they are only useful for reading them with XDS.


This is a sample MERGE2CBF.INP:
This is a sample MERGE2CBF.INP:
Line 18: Line 20:
  !NUMBER_OF_DATA_FRAMES_COVERED_BY_EACH_OUTPUT_FRAME=1
  !NUMBER_OF_DATA_FRAMES_COVERED_BY_EACH_OUTPUT_FRAME=1
</pre>
</pre>
and this is an example for how to extract all frames from a HDF5 file, and write CBF files:
LIB=/usr/local/lib64/dectris-neggia.so
NAME_TEMPLATE_OF_DATA_FRAMES= ../a2a003_0344.xds_flip.JF07T32V01.??????.h5
DATA_RANGE= 1 1512
NAME_TEMPLATE_OF_OUTPUT_FRAMES=a2a003_0344.xds_flip.JF07T32V01.??????.cbf
NUMBER_OF_DATA_FRAMES_COVERED_BY_EACH_OUTPUT_FRAME= 1
This particular HDF5 file was not readable by H5ToXds (see [[Eiger]]) nor by eiger2cbf (see [[Eiger]]), but the Dectris Neggia library could read it.
2,652

edits