2,719
edits
No edit summary |
(a bit of error handling) |
||
Line 6: | Line 6: | ||
# revision 0.03 . Kay Diederichs 2/2010 | # revision 0.03 . Kay Diederichs 2/2010 | ||
# revision 0.04 . Kay Diederichs 4/2010 - include alternative ORGX, ORGY calculations for ADSC | # revision 0.04 . Kay Diederichs 4/2010 - include alternative ORGX, ORGY calculations for ADSC | ||
# revision 0.05 . Kay Diederichs 5/2010 - grep for "Corrected" in addition to "marccd" | # revision 0.05 . Kay Diederichs 5/2010 - grep for "Corrected" in addition to "marccd" (needed for BESSY); a bit of error handling | ||
# tested with some datasets from ALS, SSRL, SLS, ESRF and BESSY; only MARCCD, ADSC/SMV, PILATUS detectors; for other detectors, values must be manually filled in. | # tested with some datasets from ALS, SSRL, SLS, ESRF and BESSY; only MARCCD, ADSC/SMV, PILATUS detectors; for other detectors, values must be manually filled in. | ||
# | # | ||
Line 25: | Line 25: | ||
# | # | ||
# notes for debugging of the script: | # notes for debugging of the script: | ||
# - add the -v option to the first line, to see where an error occurs | # - add the -v option to the first line, to see where an error occurs (make sure no blank before #!/bin/bash -v !) | ||
# - comment out the removal of tmp1 and tmp2 in the last line | # - comment out the removal of tmp1 and tmp2 in the last line | ||
# | # | ||
Line 43: | Line 43: | ||
NAME_TEMPLATE_OF_DATA_FRAMES="$1" | NAME_TEMPLATE_OF_DATA_FRAMES="$1" | ||
# list frames matching the wildcards in NAME_TEMPLATE_OF_DATA_FRAMES | # list frames matching the wildcards in NAME_TEMPLATE_OF_DATA_FRAMES; exit if none found | ||
ls -C1 $1 > tmp1 | ls -C1 $1 > tmp1 || exit 1 | ||
# set upper limit of DATA_RANGE to number of frames (see "limitations" above) | # set upper limit of DATA_RANGE to number of frames (see "limitations" above) |