2,684
edits
(→The script: v0.82 start implementing STARTING_ANGLE - useful for dials.rs_mapper) |
(→The script: STARTING_ANGLE for Pilatus) |
||
Line 98: | Line 98: | ||
# revision 0.80 . KD 13/02/2018 remove DISTANCE keyword from REFINE() list; remove POSITION from REFINE(IDXREF) | # revision 0.80 . KD 13/02/2018 remove DISTANCE keyword from REFINE() list; remove POSITION from REFINE(IDXREF) | ||
# revision 0.81 . KD 21/02/2018 when encountering CBF files from Eiger (ESRF), treat as Pilatus detector | # revision 0.81 . KD 21/02/2018 when encountering CBF files from Eiger (ESRF), treat as Pilatus detector | ||
# revision 0.82 . KD | # revision 0.82 . KD 01/03/2018 implement STARTING_ANGLE for MarCCD and Pilatus. This will enable to use dials.rs_mapper. | ||
REVISION="0.82 ( | REVISION="0.82 (01-Mar-2018)" | ||
# | # | ||
Line 447: | Line 447: | ||
ORGY=`grep Beam_xy tmp2 | sed -e s/\(// -e s/\)// -e s/\,// | awk '{print $3}'` | ORGY=`grep Beam_xy tmp2 | sed -e s/\(// -e s/\)// -e s/\,// | awk '{print $3}'` | ||
# find DETECTOR_DISTANCE and | # find DETECTOR_DISTANCE, OSCILLATION_RANGE, and STARTING_ANGLE: | ||
DETECTOR_DISTANCE=`awk '/ | DETECTOR_DISTANCE=`awk '/Detector_distance/{print $2}' tmp2` | ||
DETECTOR_DISTANCE=`echo "$DETECTOR_DISTANCE*1000" | bc -l` | DETECTOR_DISTANCE=`echo "$DETECTOR_DISTANCE*1000" | bc -l` | ||
OSCILLATION_RANGE=`awk '/ | OSCILLATION_RANGE=`awk '/Angle_increment/{print $2}' tmp2` | ||
STARTING_ANGLE=`awk '/Start_angle/{print $2}' tmp2` | |||
echo STARTING_ANGLE= $STARTING_ANGLE | |||
# get detector serial number and check if it is included in the list | # get detector serial number and check if it is included in the list |