Next: General questions about detectors
Up: SLS Detectors Software
Previous: How can the detector
Contents
Subsections
In which data format are written the data?
For MYTHEN the data are writen in ASCII fomat, one file per frame, in columns, either channel number - counts for the .raw files or angle (or channel number)-counts-error for the .dat files.
For the other detectors the files are written in binary format, and must be decoded depending on the detector.
Each file contains 100 frames.
- Normal mode
- Each frame is split into 2 packets of 1286 bytes each, where actual data is 1280 bytes each. Both the packets (incl header and footer) are written one after the other into the file.
Representation of each packet:
- The first 4 bytes represents a number from which, the frame number and packet number can be derived.
If the number was 108601, increment it by 1 to get 108602.
Then this
is the frame number
and
is the packet number.
0 is the packet on the left and 1 is the packet on the right.
On a side note, when you use the data call back, we also give you the derived frame number as an argument.
- Data of 1280 bytes. 16 bits per pixel.
- 2 bytes of insignificant footer.
- Short Frame Mode
- One Frame has only one packet of 518 bytes, where actual data is 512 bytes.
- first 4 bytes is the frame number. There is no packet number or increment required herecompared to the normal mode.
- Data of 512 bytes.
- 2 bytes of insignificant footer.
Next: General questions about detectors
Up: SLS Detectors Software
Previous: How can the detector
Contents
Thattil Dhanya
2017-09-27