Generate XDS.INP: Difference between revisions

m
(→‎The script: revision 1.05 specialcase nframes for Eiger detectors at BNL)
Line 122: Line 122:
# revision 1.03 . Feng YU 18/7/2021 fix/expand information about Shanghai Synchrotron Radiation Facility (SSRF)
# revision 1.03 . Feng YU 18/7/2021 fix/expand information about Shanghai Synchrotron Radiation Facility (SSRF)
# revision 1.04 . Zhipu Luo 13/08/2021 extract ORGX,ORGY for electron diffraction from SMV header if the wavelength value starts with 0.0  
# revision 1.04 . Zhipu Luo 13/08/2021 extract ORGX,ORGY for electron diffraction from SMV header if the wavelength value starts with 0.0  
# revision 1.05 . specialcase extraction of number of images for BNL detectors E-32-0101 and E-18-0104
# revision 1.05 . KD specialcase extraction of number of images for BNL detectors E-32-0101 and E-18-0104
REVISION="1.05 (14-OCT-2021)"
REVISION="1.05 (14-OCT-2021)"


Line 664: Line 664:
# revision 1.05 specialcase nframes for Eiger detectors at BNL
# revision 1.05 specialcase nframes for Eiger detectors at BNL
     if [ "$SN" == "E-18-0121" -o "$SN" == "E-32-0101" ]; then
     if [ "$SN" == "E-18-0121" -o "$SN" == "E-32-0101" ]; then
      echo specialcase nframes for Eiger detectors at BNL:
       nframes=`h5dump -A -g "/entry/data" $FIRSTFRAME | grep "DATASPACE  SIMPLE" | sed -e "s/,.*//" | awk '{a+=$5}END{print a}'`
       nframes=`h5dump -A -g "/entry/data" $FIRSTFRAME | grep "DATASPACE  SIMPLE" | sed -e "s/,.*//" | awk '{a+=$5}END{print a}'`
       DATA_RANGE="1 $nframes"
       DATA_RANGE="1 $nframes"
2,684

edits