Changes

From XDSwiki
Jump to navigationJump to search
191 bytes added ,  09:39, 8 March 2017
→‎The script: version 0.72
Line 88: Line 88:  
# revision 0.70 . KD 12/01/2017 remove error message if h5dump does not find /entry/sample/transformations/omega/vector
 
# revision 0.70 . KD 12/01/2017 remove error message if h5dump does not find /entry/sample/transformations/omega/vector
 
# revision 0.71 . KD 27/02/2017 implement rule for S/N 916 @ APS 24_ID_E
 
# revision 0.71 . KD 27/02/2017 implement rule for S/N 916 @ APS 24_ID_E
REVISION="0.71 (27-Feb-2017)"
+
# revision 0.72 . KD 8/03/2017 fix nframes lookup in Eiger master file
 +
REVISION="0.72 (8-Mar-2017)"
    
#                                                                                                             
 
#                                                                                                             
Line 176: Line 177:     
if [ "$is_h5" == 1 ]; then
 
if [ "$is_h5" == 1 ]; then
nframes=`h5dump -A -g "/entry/data" $FIRSTFRAME | grep "DATASPACE  SIMPLE" | sed -e "s/,.*//" | awk '{a+=$5}END{print a}'`
+
# nframes=`h5dump -A -g "/entry/data" $FIRSTFRAME | grep "DATASPACE  SIMPLE" | sed -e "s/,.*//" | awk '{a+=$5}END{print a}'`
 +
nframes=`h5dump -d "/entry/instrument/detector/detectorSpecific/nimages" $FIRSTFRAME | awk '/\(0\): [0-9]/{print $2}'`
 
  DATA_RANGE="1 $nframes"
 
  DATA_RANGE="1 $nframes"
 
  SPOT_RANGE="1 `echo "scale=0; ${nframes}/2"|bc -l`"
 
  SPOT_RANGE="1 `echo "scale=0; ${nframes}/2"|bc -l`"
2,522

edits

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

Navigation menu