source: TOOLS/CREATE_INTERP_AEROSOLS/1FILEperYr_MM_allspecies.job @ 2141

Last change on this file since 2141 was 2141, checked in by acosce, 8 years ago

Add job to create aerosol file use by lmdz from inca output

  • Property svn:executable set to *
File size: 3.4 KB
Line 
1######################
2## CURIE   TGCC/CEA ##
3######################
4#MSUB -r create_MM             # Nom du job               
5#MSUB -eo
6#MSUB -n 1              # Reservation du processus
7#MSUB -T 86400          # Limite de temps elapsed du job
8#MSUB -q xlarge
9#MSUB -Q normal
10#MSUB -A gen2211
11set +x
12
13#### Script permettant d'extraire depuis les fichiers journaliers de inca pack en frequence 1Y les moyennes mensuelles
14
15EXPER=ESM1989.4
16EXPERIMENT=historical
17RUNDIR=$SCRATCHDIR/POST_climato
18mkdir -p $RUNDIR
19cd $RUNDIR
20
21STORESIMU=$STOREDIR/IGCM_OUT/IPSLCM5CHT/PROD/${EXPERIMENT}/${EXPER}
22
23mkdir -p ${STORESIMU}/CHM/Analyse/MM
24#
25for YEAR in   1999 2000
26do
27
28    if [[ ! -s ${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc ]]; then
29        ccc_hsm get ${STORESIMU}/CHM/Output/MO/${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc
30        cp ${STORESIMU}/CHM/Output/MO/${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc .
31    fi
32
33    ncwa -O -a time_counter -d time_counter,0,30    ${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc ${EXPER}_${YEAR}_01_MM_inca_avgr.nc
34    ncwa -O -a time_counter -d time_counter,31,58   ${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc ${EXPER}_${YEAR}_02_MM_inca_avgr.nc
35    ncwa -O -a time_counter -d time_counter,59,89   ${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc ${EXPER}_${YEAR}_03_MM_inca_avgr.nc
36    ncwa -O -a time_counter -d time_counter,90,119  ${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc ${EXPER}_${YEAR}_04_MM_inca_avgr.nc
37    ncwa -O -a time_counter -d time_counter,120,150 ${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc ${EXPER}_${YEAR}_05_MM_inca_avgr.nc
38    ncwa -O -a time_counter -d time_counter,151,180 ${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc ${EXPER}_${YEAR}_06_MM_inca_avgr.nc
39    ncwa -O -a time_counter -d time_counter,181,211 ${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc ${EXPER}_${YEAR}_07_MM_inca_avgr.nc
40    ncwa -O -a time_counter -d time_counter,212,242 ${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc ${EXPER}_${YEAR}_08_MM_inca_avgr.nc
41    ncwa -O -a time_counter -d time_counter,243,272 ${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc ${EXPER}_${YEAR}_09_MM_inca_avgr.nc
42    ncwa -O -a time_counter -d time_counter,273,303 ${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc ${EXPER}_${YEAR}_10_MM_inca_avgr.nc
43    ncwa -O -a time_counter -d time_counter,304,333 ${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc ${EXPER}_${YEAR}_11_MM_inca_avgr.nc
44    ncwa -O -a time_counter -d time_counter,334,364 ${EXPER}_${YEAR}0101_${YEAR}1231_1M_inca_avgr.nc ${EXPER}_${YEAR}_12_MM_inca_avgr.nc
45   
46    ncecat -F -O  ${EXPER}_${YEAR}_01_MM_inca_avgr.nc   ${EXPER}_${YEAR}_02_MM_inca_avgr.nc  ${EXPER}_${YEAR}_03_MM_inca_avgr.nc  ${EXPER}_${YEAR}_04_MM_inca_avgr.nc  ${EXPER}_${YEAR}_05_MM_inca_avgr.nc  ${EXPER}_${YEAR}_06_MM_inca_avgr.nc  ${EXPER}_${YEAR}_07_MM_inca_avgr.nc  ${EXPER}_${YEAR}_08_MM_inca_avgr.nc  ${EXPER}_${YEAR}_09_MM_inca_avgr.nc  ${EXPER}_${YEAR}_10_MM_inca_avgr.nc ${EXPER}_${YEAR}_11_MM_inca_avgr.nc  ${EXPER}_${YEAR}_12_MM_inca_avgr.nc  ${EXPER}_${YEAR}_allMM_inca_avgr.nc
47#ncwa -O -a time_counter ${EXPER}_${YEAR}_allMM_inca_avgr.nc ${EXPER}_${YEAR}_allMM_inca_avgr.nc   #enleve dim degenerate
48
49    ncra -F -O ${EXPER}_${YEAR}_allMM_inca_avgr.nc ${EXPER}_${YEAR}_AM_inca_avgr.nc
50
51    ncrename -d record,time_counter ${EXPER}_${YEAR}_allMM_inca_avgr.nc
52    mv ${EXPER}_${YEAR}_allMM_inca_avgr.nc ${EXPER}_${YEAR}_AM_inca_avgr.nc ${EXPER}_${YEAR}_*_MM_inca_avgr.nc  ${STORESIMU}/CHM/Analyse/MM/.
53           
54done
55exit
56
Note: See TracBrowser for help on using the repository browser.