Last change
on this file since 1630 was
1560,
checked in by acosce, 13 years ago
|
Add scripts for creation and interpolation of aerosols files.
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/ksh |
---|
2 | #set -vx |
---|
3 | |
---|
4 | |
---|
5 | ####################################################################################### |
---|
6 | ### script realisant les moyennes glissantes sur 11 ans a partir des climatos de INCA |
---|
7 | ### il faut modifier : |
---|
8 | ### - le nom de la simulation (SIMUL_NAME) |
---|
9 | ### - le path des fichiers climato |
---|
10 | ####################################################################################### |
---|
11 | |
---|
12 | SIMUL_NAME=AEROSOL_RCP45_v5 |
---|
13 | |
---|
14 | mkdir -p $CSCRATCHDIR/${SIMUL_NAME} |
---|
15 | cd $CSCRATCHDIR/${SIMUL_NAME} |
---|
16 | |
---|
17 | liste_period="2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 " |
---|
18 | |
---|
19 | for period in ${liste_period} ; do |
---|
20 | |
---|
21 | file=/......../climato_${period}_LOI_IPCC_RCP45.nc |
---|
22 | if [ ! -f climato_${period}.nc ] ; then |
---|
23 | echo cp ${file} climato_${period}.nc |
---|
24 | cp ${file} climato_${period}.nc |
---|
25 | else |
---|
26 | echo climato_${period}.nc existe localement |
---|
27 | fi |
---|
28 | |
---|
29 | done |
---|
30 | |
---|
31 | |
---|
32 | AnneeFinal=2100 |
---|
33 | AnneeCourante=2095 |
---|
34 | |
---|
35 | |
---|
36 | while [ ${AnneeCourante} -le ${AnneeFinal} ] ; do |
---|
37 | (( AnneeNCEA=AnneeCourante-5 )) |
---|
38 | |
---|
39 | echo ncea -n 11,4,1 climato_${AnneeNCEA}.nc aerosols_11YearsClim_${AnneeCourante}.nc |
---|
40 | ncea -n 11,4,1 climato_${AnneeNCEA}.nc aerosols_11YearsClim_${AnneeCourante}.nc |
---|
41 | |
---|
42 | (( AnneeCourante=AnneeCourante+1 )) |
---|
43 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.