aboutsummaryrefslogtreecommitdiff
path: root/scripts/wibbletron
blob: 79ba00e95193f8ba771f9d864f4c8c4a71a4cb0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

for FILENAME in `cat $1`; do

	echo $FILENAME | indexamajig --indexing=dirax \
	                             --near-bragg \
	                             --filter-noise \
	                             > out.stream

	if [ $? -ne 0 ]; then exit 0; fi

	if [ `stat -c '%s' out.stream` -gt 300 ]; then

		~/crystfel/src/hdfsee $FILENAME --binning=1 \
		                      --int-boost=8 --filter-noise \
		                      --peak-overlay=indexed.lst
	fi

	rm -f indexed.lst

done