Generate XDS.INP: Difference between revisions

m
no edit summary
(alert user to ADSC alternative convention)
mNo edit summary
Line 122: Line 122:
       ORGX=`grep BEAM_CENTER_X tmp2 | sed s/BEAM_CENTER_X=//`
       ORGX=`grep BEAM_CENTER_X tmp2 | sed s/BEAM_CENTER_X=//`
       ORGY=`grep BEAM_CENTER_Y tmp2 | sed s/BEAM_CENTER_Y=//`
       ORGY=`grep BEAM_CENTER_Y tmp2 | sed s/BEAM_CENTER_Y=//`
# fix 2010-04-26 - tell user about possible alternatives  
# fix 2010-04-26 - tell user about possible ORGX, ORGY alternatives
# according to Ingo Korndörfer, e.g. at ESRF ID29 the following should be used:
# according to Ingo Korndörfer, e.g. at ESRF ID29 the following should be used:
       ORGX=`echo "scale=1; $ORGY/$QX" | bc -l `
       ORGX=`echo "scale=1; $ORGY/$QX" | bc -l `
       ORGY=`echo "scale=1; $ORGX/$QX" | bc -l `
       ORGY=`echo "scale=1; $ORGX/$QX" | bc -l `
       echo ATTENTION: at ESRF ID29 and other BLs use: ORGX=$ORGX ORGY=$ORGY (try these in XDS.INP !)  
       echo ATTENTION: at ESRF ID29 and other BLs use: ORGX=$ORGX ORGY=$ORGY (try these in XDS.INP !)  
# whereas this alternative convention should be used at the following beamlines (pls complete the list): XXXXX
# whereas this alternative convention should be used at the following beamlines (pls complete the list):  
       ORGX=`echo "scale=1; $ORGX/$QX" | bc -l `
       ORGX=`echo "scale=1; $ORGX/$QX" | bc -l `
       ORGY=`echo "scale=1; $NX-$ORGY/$QX" | bc -l `
       ORGY=`echo "scale=1; $NX-$ORGY/$QX" | bc -l `
# the latter alternative is written into the generated XDS.INP
# the latter alternative is written into the generated XDS.INP
       # find DETECTOR_DISTANCE and OSCILLATION_RANGE:
       # find DETECTOR_DISTANCE and OSCILLATION_RANGE:
       DETECTOR_DISTANCE=`grep DISTANCE tmp2 | sed s/DISTANCE=//`
       DETECTOR_DISTANCE=`grep DISTANCE tmp2 | sed s/DISTANCE=//`
2,652

edits