reflection box file format

The boxfile is an ascii file. It consist of a header block, and than for each reflection a data block.
Parameter legenda
s string
f floating number
i integer number
a angle
v vector in laboratory system

Global header

The global header consists of a set of keywords with parameters. There is no specific order of the records.
keyword parameters default description
ALPHA f   wavelength (Å)
ALPHA1 f   wavelength (Å)
ALPHA2 f   wavelength (Å)
ALPHARATIO f   ratio ALPHA1/ALPHA2
CHI a 65 maximum chi (°)
DETECTORSIZE f f 34.0 32.0 detector halfsize (mm)
DIST f 40.0 detector distance (mm)
FIBRE   NOFIBRE reflection box contains fibre data
FIBREORIENT v   fibre orientation goniostat position
FIBREORIENT000 v   fibre orientation at zero position
GAIN f 1.0 detector gain
GONIOSTAT a a a 0.0 0.0 0.0 goniostat angles (°)
GONIOSTATTYPE s kappa kappa euler dtb
INC a 1.0 size of one frame (°)
INCIDENCECOEFFICIENT f 0.409  
KAPPASUPPORT a 0.0 kappa goniostat support angle (°)
NOFIBRE   NOFIBRE no fibre data
PIXELSIZE f f 0.11 0.11 pixel size (mm)
POLARISATION s PERPENDICULAR PERPENDICULAR PARALLEL ANTI-PARALLEL OSMIC NONE
QVEC f f f i   add qvector to active matrix
RMAT s   next 3 lines: orientation matrix
ROTATIONDIRECTION f -1 -1 clockwise, +1 counterclockwise
ROTAX000 v 0 0 1 rotation axis
SWING a 0.0 detector swing (°)
TMAT s s   next 3 lines: transformation matrix
TWINRMAT s   next 3 lines: intering orientation matrix
TWINTMAT s s   next 3 lines: transformation matrix
! rescan s s 1 -1 rescanfactor rescanlevel
! times s -1 -1 -1 exposure totalexposure integration (sec)
not used by evalccd. propagates to output files
DETECTORTYPE s KappaCCD KappaCCD mar marccd adsc smart
DETROT a a a 0.0 0.0 0.0 detector rotation angles (°)
DETZERO f f f 0.0 0.0 0.0 detector shifts (mm)
SCAN s unknown PHI OMEGA
SCANINC a    
SCANSTART a    
SIGMACELL f f f a a a   sigma cell parameters
SIGMAVOLUME f   sigma volume
TARGET s   xray target material
! adczero     adczero corrected
! cwd s   path to imagedirectory
! dark s   dark filename
! Detector s s ? ? detector and goniostat id
! Generator s s   generator kV and mA
! respons s   sensitivity filename
! temperature s   experiment temperature
! unreliable     corrected for unreliable pixels
ignored by evalccd
CELL f f f a a a   cell parameters
VOLUME f   volume

Reflection data

The reflection data start with the keyword REFL. Between the REFL record and the SIZE record a reflection header is given. There is no specific order of the records between the REFL and SIZE record.
keyword parameters description
REFL i i i h k l
BADRESP i i bad pixel (hor ver)
FRAME i frame number of reflection in reflectionbox
IMPACT f f f f f pixhor pixver mmhor mmver rot
IMAGENAME s image filename
INC a frame width
INCIDENCE a incidence angle
LL i i a pixel coordinates of lower left pixel (hor,ver,rot)
OVFP i i i overflow pixel coordinates (hor ver frame)
BOX i i i box dimensions (nhor nver nrot)
SHOE (obsolete) i i i box dimensions (nhor nver nrot)
SIZE i maximum size of one line of box data
The actual box data:nrot * nver lines of nhor pixels.
Between frames a blanc line must be inserted.
frame 1, row 1, nhor pixels
frame 1, row 2, nhor pixels
        .....
frame 1, row nver, nhor pixels

frame 2, row 1, nhor pixels
        .....
frame 2, row nver, nhor pixels

        .....
        .....

frame nrot, row 1, nhor pixels
.....
frame nrot, row nver, nhor pixels
LOW   low data follows
low data: nver lines of nhor pixels
STOP   signals end of reflection