Generate XDS.INP: Difference between revisions

rev 0.56
(→‎The script: document: no ORGX ORGY rule exists for ADSC detector 916 @ APS BL 24_ID_E)
(rev 0.56)
Line 73: Line 73:
# revision 0.54 . KD add ADSC S/N 911 for APS Argonne, and fix spurious output arising from THETADISTANCE (?!)
# revision 0.54 . KD add ADSC S/N 911 for APS Argonne, and fix spurious output arising from THETADISTANCE (?!)
# revision 0.55 . KD add ADSC S/N 446 for APS, and check w/ 12 datasets from data.sbgrid.org. No rule found: S/N 916 @ APS 24_ID_E !
# revision 0.55 . KD add ADSC S/N 446 for APS, and check w/ 12 datasets from data.sbgrid.org. No rule found: S/N 916 @ APS 24_ID_E !
REVISION="0.55 (data.sbgrid.org edition 28-Nov-2015)"
# revision 0.56 . Keitaro 12/2015 show error message when user's input didn't match any files
REVISION="0.56 (1-Dec-2015)"
#                                                                                                             
#                                                                                                             
# usage: e.g. generate_XDS.INP "/file/system/frms/mydata_1_???.img"                                                       
# usage: e.g. generate_XDS.INP "/file/system/frms/mydata_1_???.img"                                                       
Line 118: Line 119:
# cope with blanks in directory / file name
# cope with blanks in directory / file name
IFS=$'\n'
IFS=$'\n'
/bin/ls -C1 $1 $1.bz2 $1.gz $1.xz 2>/dev/null | egrep -v "_00000.cbf|_000.img" > tmp1 || exit 1
/bin/ls -C1 $1 $1.bz2 $1.gz $1.xz 2>/dev/null | egrep -v "_00000.cbf|_000.img" > tmp1
if [ ! -s tmp1 ]
then
echo "Error! No files matched: $1"
rm -f tmp1
exit 1
fi
unset IFS
unset IFS
# we can continue - the frames are found
# we can continue - the frames are found
33

edits