-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlotus_timeseries.sh
53 lines (42 loc) · 1.22 KB
/
lotus_timeseries.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
#!/bin/bash
#SBATCH --partition=short-serial
#SBATCH --time 6:00:00
#SBATCH -o logs/log_bgcval2_ts_%J.out
#SBATCH -e logs/log_bgcval3_ts_%J.err
# Note that the
# slurm job name should be set in the command line with -J option to the jobID
# and the output and error filers are also set at the command line.
#
######################
# This script runs a single time series job.
#
# Runs:
# sbatch -J jobID lotus_timeseries.sh jobID suite1 suite2 etc...
# Note that that batch_timeseries command also
# adds specific out and job scripts,
# and outputs them to ./logs directory..
#########################
#########################
# Change this to your bgcval2 conda environment name
CONDA_ENV=bgcval2
##########################
# Source global definitions
if [ -f ~/.bashrc ]; then
echo 'source ~/.bashrc'
source ~/.bashrc
fi
##########################
# load your conda env:
#conda activate bgcval2
echo conda activate $CONDA_ENV
conda activate ${CONDA_ENV}
##########################
# Load command line arguments:
args=$@
jobID=$1
suites="${@:2}"
echo $suites
##########################
# Run single jog timeseries analysis.
echo "analysis_timeseries -j $jobID -k $suites"
analysis_timeseries -j ${jobID} -k ${suites}