-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewjob
executable file
·64 lines (63 loc) · 2.92 KB
/
newjob
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
. /nsls2/software/mx/dials-v3-7-2/dials_env.sh
file=$1; echo "file: $file"
compression="${2}xx"
start=$3
count=$4
if [ "${start}xx" == "xx" ]; then
start="0"
fi
if [ "${count}xx" == "xx" ]; then
count="0"
fi
basename=${file##*/}; #echo "basename: $basename"
target=${basename%.*}; #echo "target: $target"
echo "processing $PWD $file, compression: $compression $start $count"
if [ "$compression" == "lz4xx" ] || [ "$compression" == "xx" ]; then
cctbx.python ~/bin/h5recompress2.py ${target} lz4 2 $start $count
echo cctbx.python ~/bin/h5recompress2.py ${target} lz4 2 $start $count
fi
if [ "$compression" == "bslz4xx" ] || [ "$compression" == "xx" ]; then
cctbx.python ~/bin/h5recompress2.py ${target} bslz4 2 $start $count
echo cctbx.python ~/bin/h5recompress2.py ${target} bslz4 2 $start $count
fi
if [ "$compression" == "zstd 2xx" ] || [ "$compression" == "xx" ]; then
cctbx.python ~/bin/h5recompress2.py ${target} zstd 2 $start $count
echo cctbx.python ~/bin/h5recompress2.py ${target} zstd 2 $start $count
fi
if [ "$compression" == "zstd 3xx" ] || [ "$compression" == "xx" ]; then
cctbx.python ~/bin/h5recompress2.py ${target} zstd 3 $start $count
echo cctbx.python ~/bin/h5recompress2.py ${target} zstd 3 $start $count
fi
if [ "$compression" == "zstd 4xx" ] || [ "$compression" == "xx" ]; then
cctbx.python ~/bin/h5recompress2.py ${target} zstd 4 $start $count
echo cctbx.python ~/bin/h5recompress2.py ${target} zstd 4 $start $count
fi
if [ "$compression" == "zstd 5xx" ] || [ "$compression" == "xx" ]; then
cctbx.python ~/bin/h5recompress2.py ${target} zstd 5 $start $count
echo cctbx.python ~/bin/h5recompress2.py ${target} zstd 5 $start $count
fi
if [ "$compression" == "zstd 6xx" ] || [ "$compression" == "xx" ]; then
cctbx.python ~/bin/h5recompress2.py ${target} zstd 6 $start $count
echo cctbx.python ~/bin/h5recompress2.py ${target} zstd 6 $start $count
fi
if [ "$compression" == "bszstd 2xx" ] || [ "$compression" == "xx" ]; then
cctbx.python ~/bin/h5recompress2.py ${target} bszstd 2 $start $count
echo cctbx.python ~/bin/h5recompress2.py ${target} bszstd 2 $start $count
fi
if [ "$compression" == "bszstd 3xx" ] || [ "$compression" == "xx" ]; then
cctbx.python ~/bin/h5recompress2.py ${target} bszstd 3 $start $count
echo cctbx.python ~/bin/h5recompress2.py ${target} bszstd 3 $start $count
fi
if [ "$compression" == "bszstd 4xx" ] || [ "$compression" == "xx" ]; then
cctbx.python ~/bin/h5recompress2.py ${target} bszstd 4 $start $count
echo cctbx.python ~/bin/h5recompress2.py ${target} bszstd 4 $start $count
fi
if [ "$compression" == "bszstd 5xx" ] || [ "$compression" == "xx" ]; then
cctbx.python ~/bin/h5recompress2.py ${target} bszstd 5 $start $count
echo cctbx.python ~/bin/h5recompress2.py ${target} bszstd 5 $start $count
fi
if [ "$compression" == "bszstd 6xx" ] || [ "$compression" == "xx" ]; then
cctbx.python ~/bin/h5recompress2.py ${target} bszstd 6 $start $count
echo cctbx.python ~/bin/h5recompress2.py ${target} bszstd 6 $start $count
fi