Generate XDS.INP: Difference between revisions

Jump to navigation Jump to search
m
→‎The script: Remove two h5dump error messages (/entry/definition and goniometer/omega_start links not found)
(→‎The script: rev 1.13 make /usr/local/lib64/dectris-neggia.so into a variable, and similarly for durin-plugin.so)
m (→‎The script: Remove two h5dump error messages (/entry/definition and goniometer/omega_start links not found))
Line 130: Line 130:
# revision 1.11 . KD / Helena Taberman ROTATION_AXIS=-1 0 0 for Eiger .cbf data from Petra P14
# revision 1.11 . KD / Helena Taberman ROTATION_AXIS=-1 0 0 for Eiger .cbf data from Petra P14
# revision 1.12 . KD / Helena Taberman correct rev 1.11 to be 0 -1 0
# revision 1.12 . KD / Helena Taberman correct rev 1.11 to be 0 -1 0
# revision 1.13 . KD turn /usr/local/lib64/dectris-neggia.so into a variable, and similarly for durin-plugin.so
# revision 1.13 . KD variables for /usr/local/lib64/dectris-neggia.so and durin-plugin.so . Remove h5dump error messages.
REVISION="1.13 (02-Jun-2022)"
REVISION="1.13 (04-Jun-2022)"


#                                                                                                             
#                                                                                                             
Line 622: Line 622:
     OSCILLATION_RANGE=`h5dump -d "/entry/sample/goniometer/omega_range_average" $FIRSTFRAME | awk '/\(0\): [0-9]/{print $2}'`
     OSCILLATION_RANGE=`h5dump -d "/entry/sample/goniometer/omega_range_average" $FIRSTFRAME | awk '/\(0\): [0-9]/{print $2}'`
   # STARTING_ANGLE:  the \- was introduced in version 0.91 to allow negative values :
   # STARTING_ANGLE:  the \- was introduced in version 0.91 to allow negative values :
     STARTING_ANGLE=`h5dump -d "/entry/sample/goniometer/omega_start" $FIRSTFRAME | awk '/\(0\): [\-0-9]/{print $2}'`
     STARTING_ANGLE=`h5dump -d "/entry/sample/goniometer/omega_start" $FIRSTFRAME 2>/dev/null | awk '/\(0\): [\-0-9]/{print $2}'`
   # /entry/sample/goniometer/omega_start is missing in some eiger2 detectors (e.g. Eiger2 9M with fw version release-2020.2.1 and SIMPLON API 1.8) (Feng YU 2021-07-18)
   # /entry/sample/goniometer/omega_start is missing in some eiger2 detectors (e.g. Eiger2 9M with fw version release-2020.2.1 and SIMPLON API 1.8) (Feng YU 2021-07-18)
     if [ "$STARTING_ANGLE" == "" ]; then
     if [ "$STARTING_ANGLE" == "" ]; then
Line 697: Line 697:
# rev 1.10: check for NeXus header. If found, its geometry will overwrite any rotation_axis set until here.
# rev 1.10: check for NeXus header. If found, its geometry will overwrite any rotation_axis set until here.
   NeXus=0
   NeXus=0
   h5dump -d "/entry/definition" $FIRSTFRAME | grep -q NXmx && NeXus=1
   h5dump -d "/entry/definition" $FIRSTFRAME 2>/dev/null | grep -q NXmx && NeXus=1
   if [ "$NeXus" == "1" ]; then
   if [ "$NeXus" == "1" ]; then
     echo NeXus header found. This defines DIRECTION_OF_DETECTOR_X/Y-AXIS and ROTATION_AXIS.
     echo NeXus header found. This defines DIRECTION_OF_DETECTOR_X/Y-AXIS and ROTATION_AXIS.
2,684

edits

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

Navigation menu