incadev/IPSLCM6-AER: check_CMIP6.sh

File check_CMIP6.sh, 4.2 KB (added by ramiro, 4 years ago)

Script to check CMIP6 simulations (Ramiro Checa-Garcia)

Line 
1# Check of CMIP6 simulations =======================================================
2#
3# This script has to be run after 2 years of simulation and the results should be
4# reported to Arnaud and Anne.
5#
6# May 2020
7#
8# Note: The variables SIMULATION CARD_FILES anbd LOGDIR has to be changed for each
9#       simulation.
10
11
12case $1 in
13
14  piClim-control-v2)
15    SIMULATION=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-control/LOI61-LR-AER-piclim-Control-v2/CMIP6
16    CARD_FILES=/ccc/cont003/home/gencmip6/checagar/aerchemmip_IPSLCM6.1.11_LR_amd/modipsl/config/IPSLCM6/LOI61-LR-AER-piclim-Control-v2
17    LOGDIR=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-control/LOI61-LR-AER-piclim-Control-v2/
18    ;;
19
20  piClim-control)
21    SIMULATION=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-control/LOI61-LR-AER-piClim-control-vF/CMIP6
22    CARD_FILES=/ccc/cont003/home/gencmip6/checagar/aerchemmip_IPSLCM6.1.11_LR_amd/modipsl/config/IPSLCM6/LOI61-LR-AER-piClim-control-vF
23    LOGDIR=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-control/LOI61-LR-AER-piClim-control-vF/
24    ;;
25
26  piClim-aer)
27    SIMULATION=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-aer/LOI61-LR-AER-piclim-AER-v2/CMIP6
28    CARD_FILES=/ccc/cont003/home/gencmip6/checagar/aerchemmip_IPSLCM6.1.11_LR_amd/modipsl/config/IPSLCM6/LOI61-LR-AER-piclim-AER-v2
29    LOGDIR=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-aer/LOI61-LR-AER-piclim-AER-v2/
30    ;;
31
32  piClim-2xdust)
33    SIMULATION=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-2xdust/LOI61-LR-AER-piclim-2xDUST-v2/CMIP6
34    CARD_FILES=/ccc/cont003/home/gencmip6/checagar/aerchemmip_IPSLCM6.1.11_LR_amd/modipsl/config/IPSLCM6/LOI61-LR-AER-piclim-2xDUST-v2
35    LOGDIR=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-2xdust/LOI61-LR-AER-piclim-2xDUST-v2/
36    ;;
37
38  piClim-2xss)
39    SIMULATION=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-2xss/LOI61-LR-AER-piclim-2xSS-v2/CMIP6
40    CARD_FILES=/ccc/cont003/home/gencmip6/checagar/aerchemmip_IPSLCM6.1.11_LR_amd/modipsl/config/IPSLCM6/LOI61-LR-AER-piclim-2xSS-v2
41    LOGDIR=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-2xss/LOI61-LR-AER-piclim-2xSS-v2/
42    ;;
43
44  piClim-BC)
45    SIMULATION=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-BC/LOI61-LR-AER-piClim-BC-vF/CMIP6
46    CARD_FILES=/ccc/cont003/home/gencmip6/checagar/aerchemmip_IPSLCM6.1.11_LR_amd/modipsl/config/IPSLCM6/LOI61-LR-AER-piClim-BC-vF
47    LOGDIR=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-BC/LOI61-LR-AER-piClim-BC-vF/
48    ;;
49
50  piClim-OC)
51    SIMULATION=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-OC/LOI61-LR-AER-piClim-OC-vF/CMIP6
52    CARD_FILES=/ccc/cont003/home/gencmip6/checagar/aerchemmip_IPSLCM6.1.11_LR_amd/modipsl/config/IPSLCM6/LOI61-LR-AER-piClim-OC-vF
53    LOGDIR=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-OC/LOI61-LR-AER-piClim-OC-vF/
54    ;;
55
56  piClim-NH3)
57    SIMULATION=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-NH3/LOI61-LR-AER-piClim-NH3-vF/CMIP6
58    CARD_FILES=/ccc/cont003/home/gencmip6/checagar/aerchemmip_IPSLCM6.1.11_LR_amd/modipsl/config/IPSLCM6/LOI61-LR-AER-piClim-NH3-vF
59    LOGDIR=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-NH3/LOI61-LR-AER-piClim-NH3-vF/
60    ;;
61
62  piClim-SO2)
63    SIMULATION=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-SO2/LOI61-LR-AER-piClim-SO2-vF/CMIP6
64    CARD_FILES=/ccc/cont003/home/gencmip6/checagar/aerchemmip_IPSLCM6.1.11_LR_amd/modipsl/config/IPSLCM6/LOI61-LR-AER-piClim-SO2-vF
65    LOGDIR=/ccc/work/cont003/gencmip6/checagar/IGCM_OUT/IPSLCM6/PROD/piClim-SO2/LOI61-LR-AER-piClim-SO2-vF/
66    ;;
67
68
69
70esac
71
72setfacl -Rm u:levavasg:rwX $SIMULATION
73setfacl -Rdm u:levavasg:rwX $SIMULATION
74
75module load datadir/gencmip6
76export PATH=$GENCMIP6_ALL_CCCWORKDIR/miniconda/bin:$PATH
77source activate cmip6
78
79
80XIOFileChecker $SIMULATION --card $CARD_FILES -l $LOGDIR
81
82nctxck $SIMULATION --card $CARD_FILES --set-inc Esubhr:subhrPt=15m --exclude-file ".*_Odec_.*" --exclude-file ".*-clim\.nc" --ignore-errors 002 -l $LOGDIR
83
84nctcck $SIMULATION --card $CARD_FILES -l $LOGDIR
85