-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwrap_ACCESS_Archiver.sh
executable file
·65 lines (52 loc) · 1.41 KB
/
wrap_ACCESS_Archiver.sh
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
64
65
#!/bin/bash
set -a
#########################
#
# This is the wrapper for the ACCESS Archiver
# 21/01/2022
#
# Developed by Chloe Mackallah, CSIRO Aspendale
#
#########################
# USER SETTINGS
#comp_proj = NCI project to charge compute
comp_proj=p66
#base_dir = location above raw output directory
#base_dir=/scratch/p66/fd0474/archive
base_dir=/scratch/p66/txz599/archive
#arch_dir = location to archive
arch_dir=/g/data/p73/archive/CMIP6/ACCESS-ESM1-5/
#access_version = [cm2, cm2amip, cm2chem, esmscript, esmpayu, om2]
access_version=esmscript
#ncexists = [true, false]
#true: Copy netcdf version of file if it exists; false: Always use UM pp-file if it exists, whether or not netcdf version exists
ncexists=false
#subdaily = [true, false]; convert subdaily atm files?
subdaily=false
#loc_exps = list of local experiment names (stored in 'base_dir') to archive
loc_exps=(
#ch097
SSP-534-lu-05
)
#task = [archive, check]
#archive: run ACCESS_Archiver.sh; check: run Archive_checker.sh
task=archive
# Optionally set year range to archive.
# Default if unset is all.
#first_year=1
#last_year=100
#
#########################
# DO NOT EDIT - FIXED TASKS
#run Archiver or checker
for loc_exp in ${loc_exps[@]}; do
if [[ $task == archive ]]; then
./ACCESS_Archiver.sh
elif [[ $task == check ]]; then
./Archive_checker.sh
else
echo "could not identify 'task'"; exit
fi
done
#########################
exit