-
Notifications
You must be signed in to change notification settings - Fork 0
/
regrid_lows_5km_qld.sh
executable file
·29 lines (20 loc) · 2.53 KB
/
regrid_lows_5km_qld.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/sh
# Get all the RX1H and RX1D
dir=/scratch/eg3/asp561/NCRA/
export RUNSTAT_DATE last
agency=('BOM' 'BOM' 'BOM' 'BOM' 'BOM' 'BOM' 'BOM' 'CSIRO' 'CSIRO' 'CSIRO' 'CSIRO' 'CSIRO' 'CSIRO' 'UQ-DES' 'UQ-DES' 'UQ-DES' 'UQ-DES' 'UQ-DES' 'UQ-DES' 'UQ-DES' 'UQ-DES' 'UQ-DES' 'UQ-DES' 'UQ-DES' 'UQ-DES' 'UQ-DES' 'UQ-DES' 'UQ-DES' 'CSIRO' 'NSW-Government' 'NSW-Government' 'NSW-Government' 'NSW-Government' 'NSW-Government' 'NSW-Government' 'NSW-Government' 'NSW-Government' 'NSW-Government' 'NSW-Government')
model=('ACCESS-CM2' 'ACCESS-ESM1-5' 'CESM2' 'CMCC-ESM2' 'EC-Earth3' 'MPI-ESM1-2-HR' 'NorESM2-MM' 'ACCESS-CM2' 'ACCESS-ESM1-5' 'CESM2' 'CMCC-ESM2' 'CNRM-ESM2-1' 'EC-Earth3' 'ACCESS-CM2' 'ACCESS-ESM1-5' 'ACCESS-ESM1-5' 'ACCESS-ESM1-5' 'CMCC-ESM2' 'CNRM-CM6-1-HR' 'CNRM-CM6-1-HR' 'EC-Earth3' 'FGOALS-g3' 'GFDL-ESM4' 'GISS-E2-1-G' 'MPI-ESM1-2-LR' 'MRI-ESM2-0' 'NorESM2-MM' 'NorESM2-MM' 'NorESM2-MM' 'ACCESS-ESM1-5' 'EC-Earth3-Veg' 'MPI-ESM1-2-HR' 'NorESM2-MM' 'UKESM1-0-LL' 'ACCESS-ESM1-5' 'EC-Earth3-Veg' 'MPI-ESM1-2-HR' 'NorESM2-MM' 'UKESM1-0-LL')
member=('r4i1p1f1' 'r6i1p1f1' 'r11i1p1f1' 'r1i1p1f1' 'r1i1p1f1' 'r1i1p1f1' 'r1i1p1f1' 'r4i1p1f1' 'r6i1p1f1' 'r11i1p1f1' 'r1i1p1f1' 'r1i1p1f2' 'r1i1p1f1' 'r2i1p1f1' 'r20i1p1f1' 'r40i1p1f1' 'r6i1p1f1' 'r1i1p1f1' 'r1i1p1f2' 'r1i1p1f2' 'r1i1p1f1' 'r4i1p1f1' 'r1i1p1f1' 'r2i1p1f2' 'r9i1p1f1' 'r1i1p1f1' 'r1i1p1f1' 'r1i1p1f1' 'r1i1p1f1' 'r6i1p1f1' 'r1i1p1f1' 'r1i1p1f1' 'r1i1p1f1' 'r1i1p1f2' 'r6i1p1f1' 'r1i1p1f1' 'r1i1p1f1' 'r1i1p1f1' 'r1i1p1f2')
rcm=('BARPA-R' 'BARPA-R' 'BARPA-R' 'BARPA-R' 'BARPA-R' 'BARPA-R' 'BARPA-R' 'CCAM-v2203-SN' 'CCAM-v2203-SN' 'CCAM-v2203-SN' 'CCAM-v2203-SN' 'CCAM-v2203-SN' 'CCAM-v2203-SN' 'CCAMoc-v2112' 'CCAMoc-v2112' 'CCAMoc-v2112' 'CCAM-v2105' 'CCAM-v2105' 'CCAMoc-v2112' 'CCAM-v2112' 'CCAM-v2105' 'CCAM-v2105' 'CCAM-v2105' 'CCAM-v2105' 'CCAM-v2105' 'CCAM-v2105' 'CCAMoc-v2112' 'CCAM-v2112' 'CCAM-v2203-SN' 'NARCliM2-0-WRF412R3' 'NARCliM2-0-WRF412R3' 'NARCliM2-0-WRF412R3' 'NARCliM2-0-WRF412R3' 'NARCliM2-0-WRF412R3' 'NARCliM2-0-WRF412R5' 'NARCliM2-0-WRF412R5' 'NARCliM2-0-WRF412R5' 'NARCliM2-0-WRF412R5' 'NARCliM2-0-WRF412R5')
version=v1-r1
for ssp in historical ssp370 ; do
for m in {28..28} ; do
sdir="CCAM"
fin=$sdir/lows_${model[$m]}_${member[$m]}_${rcm[$m]}_${ssp}.nc
fout=5km/lows_AGCD-05i_${model[$m]}_${ssp}_${member[$m]}_${agency[$m]}_${rcm[$m]}_${version}_annual.nc
cdo yearmean ${dir}/${fin} ${dir}/tmp.nc
cdo remapbil,/g/data/eg3/asp561/Shapefiles/awapgrid ${dir}/tmp.nc ${dir}/${fout}
rm ${dir}/tmp.nc
#cdo remapbil,/g/data/eg3/asp561/Shapefiles/awapgrid ${dir}/${fin} ${dir}/${fout}
done
done