Generate XDS.INP: Difference between revisions

→‎The script: more fixes
(→‎The script: small fixes)
(→‎The script: more fixes)
Line 316: Line 316:
  echo  "Data from a Mar345 image plate detector"
  echo  "Data from a Mar345 image plate detector"
  DETECTOR="MAR345  MINIMUM_VALID_PIXEL_VALUE=0  OVERLOAD=130000"
  DETECTOR="MAR345  MINIMUM_VALID_PIXEL_VALUE=0  OVERLOAD=130000"
  NX=`grep FORMAT tmp2 | awk '{print $2}'`
  NX=`awk '/FORMAT/{print $2}' tmp2`
  NY=$NX
  NY=$NX
  QX=`awk /PIXEL/'{print $3}'`
  QX=`awk '/PIXEL/{print $3/1000.}' tmp2`
  QY=`awk /PIXEL/'{print $5}'`
  QY=`awk '/PIXEL/{print $5/1000.}' tmp2`
QX=`echo $QX / 1000 | bc`
QY=`echo $QY / 1000 | bc`
  if grep -q 'CENTER' tmp2; then
  if grep -q 'CENTER' tmp2; then
   echo Beam center found.
   echo Beam center found.
2,684

edits