Generate XDS.INP: Difference between revisions

Jump to navigation Jump to search
put NX NY QX QY into XDS.INP
m (fix negative PHISTART)
(put NX NY QX QY into XDS.INP)
Line 17: Line 17:
# revision 0.10 . Tim Gruene 7/2010 - set link 'images' to image directory if path exceeds 72 characters
# revision 0.10 . Tim Gruene 7/2010 - set link 'images' to image directory if path exceeds 72 characters
# revision 0.11 . KD 7/2010 - for MarCCD: look for distance info at different byte position
# revision 0.11 . KD 7/2010 - for MarCCD: look for distance info at different byte position
# revision 0.12 . KD 7/2010 - fix for negative PHISTART  
# revision 0.12 . KD 7/2010 - fix for negative PHISTART
# revision 0.13 . KD 8/2010 - store correct NX NY QX QY in XDS.INP
#
#
# usage: e.g. generate_XDS.INP "frms/mydata_1_???.img"
# usage: e.g. generate_XDS.INP "frms/mydata_1_???.img"
Line 52: Line 53:
OSCILLATION_RANGE=XXX
OSCILLATION_RANGE=XXX
X_RAY_WAVELENGTH=XXX
X_RAY_WAVELENGTH=XXX
QX=XXX
QY=XXX
NX=XXX
NY=XXX


# see how we are called:
# see how we are called:
Line 178: Line 183:
       NX=`grep SIZE1 tmp2 | tail -1 | sed s/SIZE1=//`
       NX=`grep SIZE1 tmp2 | tail -1 | sed s/SIZE1=//`
       QX=`grep PIXEL_SIZE tmp2 | sed s/PIXEL_SIZE=//`
       QX=`grep PIXEL_SIZE tmp2 | sed s/PIXEL_SIZE=//`
# FIXME - next 2 lines should be done properly, from header
      NY=$NX     
      QY=$QX
       BEAM_CENTER_X=`grep BEAM_CENTER_X tmp2 | sed s/BEAM_CENTER_X=//`
       BEAM_CENTER_X=`grep BEAM_CENTER_X tmp2 | sed s/BEAM_CENTER_X=//`
       BEAM_CENTER_Y=`grep BEAM_CENTER_Y tmp2 | sed s/BEAM_CENTER_Y=//`
       BEAM_CENTER_Y=`grep BEAM_CENTER_Y tmp2 | sed s/BEAM_CENTER_Y=//`
Line 200: Line 208:
elif [ "$DET" == "pilatus" ]; then
elif [ "$DET" == "pilatus" ]; then
   DETECTOR="PILATUS MINIMUM_VALID_PIXEL_VALUE=0 OVERLOAD= 1048576 QX=0.172 QY=0.172 !PILATUS 6M"
   DETECTOR="PILATUS MINIMUM_VALID_PIXEL_VALUE=0 OVERLOAD= 1048576 QX=0.172 QY=0.172 !PILATUS 6M"
  NX=2463 NY=2527 QX=0.172 QY=0.172
   echo this is a Pilatus detector
   echo this is a Pilatus detector
   head -50 `head -1 tmp1` | sed s/#//> tmp2
   head -50 `head -1 tmp1` | sed s/#//> tmp2
Line 267: Line 276:
! parameters specifically for this detector and beamline:
! parameters specifically for this detector and beamline:
DETECTOR= $DETECTOR
DETECTOR= $DETECTOR
!NX= 3072 NY= 3072 QX= 0.10260 QY= 0.10260 ! XDS finds this out by itself (not for Pilatus)
!NX= $NX NY= $NY QX= $QX QY= $QY ! XDS finds this out by itself (not for Pilatus)
DIRECTION_OF_DETECTOR_X-AXIS=1 0 0
DIRECTION_OF_DETECTOR_X-AXIS=1 0 0
DIRECTION_OF_DETECTOR_Y-AXIS=0 1 0
DIRECTION_OF_DETECTOR_Y-AXIS=0 1 0
Line 278: Line 287:
echo After running xds, inspect at least BKGPIX.cbf and FRAME.cbf with XDS-Viewer!
echo After running xds, inspect at least BKGPIX.cbf and FRAME.cbf with XDS-Viewer!
rm -f tmp1 tmp2  
rm -f tmp1 tmp2  


</pre>
</pre>
2,684

edits

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

Navigation menu