-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubCompress
More file actions
executable file
·43 lines (33 loc) · 1.4 KB
/
subCompress
File metadata and controls
executable file
·43 lines (33 loc) · 1.4 KB
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
#!/bin/bash
set -o errexit # abort on nonzero exitstatus
set -o pipefail # don't hide errors within pipes
echo "Starting subCompress"
# shellcheck disable=SC1090,SC1091
source "util.sh"
atm="summer"
zenith=""
wobble=""
mode="std"
nsb_group="all"
source_dir=${PWD}
n_merge_max=5
# shellcheck disable=SC2068
collect_arguments 6 atm zenith wobble mode nsb_group n_merge_max $@
atm=$(validate_atm "${atm}")
zenith=$(validate_zenith "${zenith}")
wobble=$(validate_wobble "${wobble}")
mode=$(validate_mode "${mode}")
nsb_list=$(nsb_list_from_group "${nsb_group}")
for n_merge in $(seq 1 $n_merge_max); do
printf "n merge %s\n" "${n_merge}"
for nsb in ${nsb_list}; do
# send_mail="-m ae" # splitting is necessary
send_mail="" # splitting is necessary
log_err=$(compressed_care_log "${zenith}" "${atm}" "${wobble}" "${nsb}" "${mode}" "err" "${n_merge}")
log_out=$(compressed_care_log "${zenith}" "${atm}" "${wobble}" "${nsb}" "${mode}" "out" "${n_merge}")
remove_file "${log_err}" "${log_out}" || true
mkdir -p "$(dirname "${log_out}")"
# shellcheck disable=SC2086
qsub -P veritas -l s_cpu=24:00:00 -l h_rss=4G ${send_mail} -N "comp_${wobble}" -e "${log_err}" -o "${log_out}" "${source_dir}/compressCARE" -zenith "${zenith}" -atm "${atm}" -wobble "${wobble}" -mode "${mode}" -nsb "${nsb}" -src "${source_dir}" -n_merge "${n_merge}"
done
done