diff options
| author | Connor Moore <connor.moore@psi.ch> | 2026-07-07 14:23:49 +0200 |
|---|---|---|
| committer | Connor Moore <connor.moore@psi.ch> | 2026-07-07 14:23:49 +0200 |
| commit | 3e72a369b6567702711774ea0deec4fbfe47790a (patch) | |
| tree | eba39c06ecd9cc3aade125d0147d3e32ad91b791 /extract_ranges.sh | |
| parent | 13bfcb2cb9c9b06702fe783623837354c980f667 (diff) | |
Added helper bash script for getting k-eff range for pool heights and fixed driver script
Diffstat (limited to 'extract_ranges.sh')
| -rwxr-xr-x | extract_ranges.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/extract_ranges.sh b/extract_ranges.sh new file mode 100755 index 0000000..2c51300 --- /dev/null +++ b/extract_ranges.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +echo "#" $(date) > results/range_table + +pool_heights=$(cat results/keff_table | awk '{print $1}' | uniq) +#pool_heights="41" + +for ph in $pool_heights; do + # Find min and max + output=$(cat results/keff_table | awk -v var=$ph '$1 == var {print $3}') + min_k=$(echo "$output" | sort -g | head -n 1) + max_k=$(echo "$output" | sort -g | tail -n 1) + echo $ph $min_k $max_k >> results/range_table +done |
