Generate XDS.INP: Difference between revisions

Jump to navigation Jump to search
rev 0.18
No edit summary
(rev 0.18)
Line 24: Line 24:
# revision 0.16 . KD 3/2011 - SENSOR_THICKNESS=0.01 for ADSC and MarCCD. Add comment about SILICON=
# revision 0.16 . KD 3/2011 - SENSOR_THICKNESS=0.01 for ADSC and MarCCD. Add comment about SILICON=
# revision 0.17 . KD 3/2011 - make it work for .bz2 frames; improve screen output
# revision 0.17 . KD 3/2011 - make it work for .bz2 frames; improve screen output
REVISION=0.17
# revision 0.18 . KD 4/2011 - faster by doing "strings" only once; revert "images/${1##/*/}" "correction"
REVISION="0.18 (01-Apr-2011)"
#
#
# usage: e.g. generate_XDS.INP "frms/mydata_1_???.img"
# usage: e.g. generate_XDS.INP "frms/mydata_1_???.img"
Line 88: Line 89:
    ln -s ${TMP_DIRNAME} images
    ln -s ${TMP_DIRNAME} images
fi
fi
# NAME_TEMPLATE_OF_DATA_FRAMES="images/${1##/*/}"
NAME_TEMPLATE_OF_DATA_FRAMES="images/${1##/*/}"
# KD 30.3.11 previous line changed to:
# KD 30.3.11 I believe the previous line should be changed to:
      NAME_TEMPLATE_OF_DATA_FRAMES="images/${TMP_FILENAME}"  
#      NAME_TEMPLATE_OF_DATA_FRAMES="images/${TMP_FILENAME}"  
# but I have not had the time to properly test this
echo "              Using template filename \"${NAME_TEMPLATE_OF_DATA_FRAMES}\""
echo "              Using template filename \"${NAME_TEMPLATE_OF_DATA_FRAMES}\""
     fi
     fi
Line 114: Line 116:
FIRSTFRAME=`head -1 tmp1`
FIRSTFRAME=`head -1 tmp1`
echo $FIRSTFRAME | grep -q bz2 && bzcat $FIRSTFRAME > tmp1 && FIRSTFRAME=tmp1
echo $FIRSTFRAME | grep -q bz2 && bzcat $FIRSTFRAME > tmp1 && FIRSTFRAME=tmp1
strings $FIRSTFRAME | egrep -q 'marccd|Corrected' && DET=mccd
strings $FIRSTFRAME > tmp2
strings $FIRSTFRAME | grep -q PILATUS            && DET=pilatus
egrep -q 'marccd|Corrected' tmp2 && DET=mccd
strings $FIRSTFRAME | grep -q BEAM_CENTER_X      && DET=adsc
grep -q PILATUS tmp2             && DET=pilatus
grep -q BEAM_CENTER_X tmp2       && DET=adsc
# identify other detector types in the same way (MAR IP would be straightforward)
# identify other detector types in the same way (MAR IP would be straightforward)


2,684

edits

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

Navigation menu