Generate XDS.INP: Difference between revisions

Jump to navigation Jump to search
→‎The script: fix upper spot range calculation if nframe=1 and .h5
(→‎The script: fix upper spot range calculation if nframe=1 and .h5)
Line 186: Line 186:
  nframes=`h5dump -d "/entry/instrument/detector/detectorSpecific/nimages" $FIRSTFRAME | awk '/\(0\): [0-9]/{print $2}'`
  nframes=`h5dump -d "/entry/instrument/detector/detectorSpecific/nimages" $FIRSTFRAME | awk '/\(0\): [0-9]/{print $2}'`
  DATA_RANGE="1 $nframes"
  DATA_RANGE="1 $nframes"
  SPOT_RANGE="1 `echo "scale=0; ${nframes}/2"|bc -l`"
  SPOT_RANGE="1 `echo "scale=0; if (${nframes}<2) 1; if (${nframes}>1) ${nframes}/2"|bc -l`"
fi
fi


2,684

edits

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

Navigation menu