-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate_diagnostics.sh
executable file
·27 lines (24 loc) · 1.18 KB
/
generate_diagnostics.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
#!/bin/bash
# This script generates diagnostics 1-3 for SIPN South submission.
# It expects an icenet pipeline directory in the root called 'icenet-pipeline/'
# which has the prediction output netCDF generated prior to being run
# under './icenet-pipeline/results/forecasts'
# Start year to process
export YEAR_START=${1}
# End year to process
export YEAR_END=${2}
# Which SIPN South Diagnostics to generate (comma separated), Options: 1,2,3
export DIAGNOSTICS=${3:-"1,2,3"}
# Whether to use SIC mean or process individual ensemble SIC forecast predictions.
export METHOD=${4:-"ensemble"}
# SIPN South only requires 90 day leadtime, should we process a different leadtime?
# IceNet outputs a 93 day leadtime forecast by default
export FORECAST_LEADTIME=${5:-"90"}
# Loop through and generate diagnostics for specified years
for ((i=$YEAR_START;i<=$YEAR_END;i++))
do
YEAR=$i
echo Processing ${YEAR}
icenet_sipnsouth_diagnostics ./icenet-pipeline fc.${YEAR}-11-30_south ${YEAR}-11-30 -d ${DIAGNOSTICS} -m ${METHOD} -fl ${FORECAST_LEADTIME}
#icenet_sipnsouth_diagnostics ./icenet-pipeline fc.${YEAR}-11-30_south ${YEAR}-11-30 -d ${DIAGNOSTICS} -p -m ${METHOD} -fl ${FORECAST_LEADTIME}
done