Changes

From XDSwiki
Jump to navigationJump to search
91 bytes added ,  15:04, 10 July 2010
fix MarCCD location of distance info
Line 16: Line 16:  
# for other detectors, values marked with XXX must be manually filled in.
 
# for other detectors, values marked with XXX must be manually filled in.
 
# 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
 
#
 
#
 
# usage: e.g. generate_XDS.INP "frms/mydata_1_???.img"
 
# usage: e.g. generate_XDS.INP "frms/mydata_1_???.img"
Line 125: Line 126:  
   NY=$(od -t dI --skip-bytes=$SKIP --read-bytes=4 $MARFRAME | head -1 | awk '{print $2}')
 
   NY=$(od -t dI --skip-bytes=$SKIP --read-bytes=4 $MARFRAME | head -1 | awk '{print $2}')
   −
   let SKIP=1024+256+128+256
+
   let SKIP=1720
 
   DETECTOR_DISTANCE=$(od -t dI --skip-bytes=$SKIP --read-bytes=4 $MARFRAME | head -1 | awk '{print $2}')
 
   DETECTOR_DISTANCE=$(od -t dI --skip-bytes=$SKIP --read-bytes=4 $MARFRAME | head -1 | awk '{print $2}')
 
   DETECTOR_DISTANCE=`echo "scale=3; $DETECTOR_DISTANCE/1000" | bc -l`
 
   DETECTOR_DISTANCE=`echo "scale=3; $DETECTOR_DISTANCE/1000" | bc -l`
 
      
 
      
   let SKIP=$SKIP+4
+
   let SKIP=1024+256+128+256+4
 
   ORGX=$(od -t dI --skip-bytes=$SKIP --read-bytes=4 $MARFRAME | head -1 | awk '{print $2}')
 
   ORGX=$(od -t dI --skip-bytes=$SKIP --read-bytes=4 $MARFRAME | head -1 | awk '{print $2}')
 
   ORGX=`echo "scale=2; $ORGX/1000" | bc -l `
 
   ORGX=`echo "scale=2; $ORGX/1000" | bc -l `
2,517

edits

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

Navigation menu