1 | #! /bin/bash |
---|
2 | |
---|
3 | ######################## |
---|
4 | # make a minimum startbase |
---|
5 | # with what is |
---|
6 | # in start_archive.nc file for clim scenario |
---|
7 | # downloaded from the server (reference MCD 5.2) |
---|
8 | ######################## |
---|
9 | |
---|
10 | |
---|
11 | ########################################### |
---|
12 | ##### NEED TO SOURCE THE ENV |
---|
13 | source ../../code/LMDZ.COMMON/arch.env |
---|
14 | ##### NEED TO SOURCE THE ENV |
---|
15 | ########################################### |
---|
16 | |
---|
17 | |
---|
18 | scen="clim" # the one set in callphys.def |
---|
19 | #scen="MY29" |
---|
20 | |
---|
21 | namefolder="startbase_"$scen"_mini" |
---|
22 | |
---|
23 | \rm -rf $namefolder |
---|
24 | mkdir $namefolder |
---|
25 | |
---|
26 | \rm start_archive_64x48x49_${scen}_aveEUV.nc |
---|
27 | #wget -q http://www.lmd.jussieu.fr/~lmdz/planets/mars/starts/start_archive_64x48x49_$scen.nc |
---|
28 | wget --no-check-certificate -q https://web.lmd.jussieu.fr/~lmdz/planets/mars/starts_MCDv5.3/start_archive_64x48x49_${scen}_aveEUV.nc |
---|
29 | |
---|
30 | ln -sf start_archive_64x48x49_${scen}_aveEUV.nc start_archive.nc |
---|
31 | |
---|
32 | echo -e "0\n \n0\n \n" | newstart.e > $namefolder/log0 2> $namefolder/log0 |
---|
33 | mv restart.nc $namefolder/start0.nc |
---|
34 | mv restartfi.nc $namefolder/startfi0.nc |
---|
35 | |
---|
36 | echo -e "0\n \n193\n \n" | newstart.e > $namefolder/log193 2> $namefolder/log193 |
---|
37 | mv restart.nc $namefolder/start193.nc |
---|
38 | mv restartfi.nc $namefolder/startfi193.nc |
---|
39 | |
---|
40 | #echo -e "0\n \n372\n \n" | newstart.e > $namefolder/log372 2> $namefolder/log372 |
---|
41 | #mv restart.nc $namefolder/start372.nc |
---|
42 | #mv restartfi.nc $namefolder/startfi372.nc |
---|
43 | # |
---|
44 | #echo -e "0\n \n515\n \n" | newstart.e > $namefolder/log515 2> $namefolder/log515 |
---|
45 | #mv restart.nc $namefolder/start515.nc |
---|
46 | #mv restartfi.nc $namefolder/startfi515.nc |
---|
47 | |
---|