Generate XDS.INP: Difference between revisions

Jump to navigation Jump to search
→‎The script: STARTING_ANGLE for Pilatus
(→‎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 28/02/2018 implement STARTING_ANGLE. Start with MarCCD. This will enable to use dials.rs_mapper.
# 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 (28-Feb-2018)"
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 OSCILLATION_RANGE:
       # find DETECTOR_DISTANCE, OSCILLATION_RANGE, and STARTING_ANGLE:
       DETECTOR_DISTANCE=`awk '/distance/{print $2}' tmp2`
       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 '/Angle/{print $2}' tmp2`
       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
2,652

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu