2,684
edits
(fix MarCCD location of distance info) |
m (fix negative PHISTART) |
||
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 | |||
# | # | ||
# usage: e.g. generate_XDS.INP "frms/mydata_1_???.img" | # usage: e.g. generate_XDS.INP "frms/mydata_1_???.img" | ||
Line 141: | Line 142: | ||
let SKIP=1024+256+128+256+76 | let SKIP=1024+256+128+256+76 | ||
PHIEND=$(od -t dI --skip-bytes=$SKIP --read-bytes=4 $MARFRAME | head -1 | awk '{print $2}') | PHIEND=$(od -t dI --skip-bytes=$SKIP --read-bytes=4 $MARFRAME | head -1 | awk '{print $2}') | ||
OSCILLATION_RANGE=`echo "scale=3; ($PHIEND-$PHISTART)/1000" | bc -l` | OSCILLATION_RANGE=`echo "scale=3; ($PHIEND-($PHISTART))/1000" | bc -l` | ||
let SKIP=1024+256+128+256+128+4 | let SKIP=1024+256+128+256+128+4 |