Changes

From XDSwiki
Jump to navigationJump to search
589 bytes added ,  13:18, 3 October 2020
m
→‎The script: v 0.96 add printout if ROTATION_AXIS inverted
Line 112: Line 112:  
# revision 0.94 . KD 16/03/2020 bugfix for Bruker-cbf to make bc accept e.g. 3.1e-005 by using awk printf "%.5f" instead of awk print  
 
# revision 0.94 . KD 16/03/2020 bugfix for Bruker-cbf to make bc accept e.g. 3.1e-005 by using awk printf "%.5f" instead of awk print  
 
# revision 0.95 . KD 29/07/2020 fix DLS Eiger HDF5 variant OSCILLATION_RANGE, STARTING_ANGLE. Attention: DLS Eiger variant needs h5dump 1.10 for OVERLOAD!
 
# revision 0.95 . KD 29/07/2020 fix DLS Eiger HDF5 variant OSCILLATION_RANGE, STARTING_ANGLE. Attention: DLS Eiger variant needs h5dump 1.10 for OVERLOAD!
REVISION="0.95 (29-Jul-2020)"
+
# revision 0.96 . KD 03/10/2020 make script echo detector serial number if inverted ROTATION_AXIS is detected. Suspect APS PILATUS3 6M, S/N 60-0137 inverted.
 +
REVISION="0.96 (3-Oct-2020)"
    
#                                                                                                             
 
#                                                                                                             
Line 277: Line 278:  
   if echo "${DET_SN}${REVERSEPHI_SNs}" | sort | uniq -d | grep [0-9] > /dev/null; then
 
   if echo "${DET_SN}${REVERSEPHI_SNs}" | sort | uniq -d | grep [0-9] > /dev/null; then
 
     REVERSE_PHI="yes"
 
     REVERSE_PHI="yes"
 +
    echo inverted ROTATION_AXIS since Detector Serial Number is "${DET_SN}"
 
   fi
 
   fi
   Line 435: Line 437:  
       if echo "${DET_SN}${REVERSEPHI_SNs}" | sort | uniq -d | grep [0-9] > /dev/null; then
 
       if echo "${DET_SN}${REVERSEPHI_SNs}" | sort | uniq -d | grep [0-9] > /dev/null; then
 
         REVERSE_PHI="yes"
 
         REVERSE_PHI="yes"
 +
        echo inverted ROTATION_AXIS since detector serial number is ${DET_SN}
 
       fi
 
       fi
   Line 511: Line 514:  
       if echo "${DET_SN}${REVERSEPHI_SNs}" | sort | uniq -d | grep [0-9] > /dev/null; then
 
       if echo "${DET_SN}${REVERSEPHI_SNs}" | sort | uniq -d | grep [0-9] > /dev/null; then
 
         REVERSE_PHI="yes"
 
         REVERSE_PHI="yes"
 +
        echo inverted ROTATION_AXIS since detector serial number is ${DET_SN}
 
       fi
 
       fi
 
       if [ "$DET_SN" == "PILATUS XXX, S/N XX-XXX" ] ; then
 
       if [ "$DET_SN" == "PILATUS XXX, S/N XX-XXX" ] ; then
Line 521: Line 525:  
         if grep -q "Oscillation_axis X.CW +SLOW" tmp2 ; then
 
         if grep -q "Oscillation_axis X.CW +SLOW" tmp2 ; then
 
           rotation_axis="0 -1 0"
 
           rotation_axis="0 -1 0"
 +
          echo ROTATION_AXIS="0 -1 0" at Diamond I24
 
         fi
 
         fi
 
       fi
 
       fi
# insert similar code for Petra P14 here
+
# FIXME: insert similar code for Petra P14 here
    
elif [ "$DET" == "eiger" ]; then
 
elif [ "$DET" == "eiger" ]; then
Line 531: Line 536:  
   if [ "$DLS" == 1 ]; then
 
   if [ "$DLS" == 1 ]; then
 
     echo Eiger HDF5 from Diamond
 
     echo Eiger HDF5 from Diamond
 +
# unfortunately h5dump 1.10 is required to get this right for the DLS .h5 files. This version is available at DLS but usually not elsewhere
 
     OVERLOAD=`h5dump -d "/entry/instrument/detector/saturation_value" $FIRSTFRAME | awk '/\(0\):/{print $2}'`
 
     OVERLOAD=`h5dump -d "/entry/instrument/detector/saturation_value" $FIRSTFRAME | awk '/\(0\):/{print $2}'`
 
   # v0.95: fix the next 2 lines by taking care of negative values with the \- , and stop after first "(0)"
 
   # v0.95: fix the next 2 lines by taking care of negative values with the \- , and stop after first "(0)"
2,461

edits

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

Navigation menu