-
Notifications
You must be signed in to change notification settings - Fork 0
/
emis_2016.sh
executable file
·93 lines (80 loc) · 1.77 KB
/
emis_2016.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/bash
#
#: Title : emis_2016.sh
#: Date : 25/04/2021
#: Author : "Jose Agustin Garcia Reynoso" <agustin@atmosfera.unam.mx>
#: Version : 1.0 26/04/2021 Actualizacion para IE del 2016
#: Description : Programa de emisiones con funciones
#: Options : None
#SBATCH -J emi_2016
#SBATCH -o emi_2016%j.o
#SBATCH -n 4
#SBATCH --ntasks-per-node=24
#SBATCH -p id
# Emissions area avalable:
# bajio bajio3 cdjuarez colima ecacor ecaim ecaim3
# guadalajara jalisco mexicali mexico mexico9
# monterrey monterrey3 queretaro tijuana
#
dominio=tijuana
# To set spatial distribution = 1 else =0
HacerArea=1
#
# Mechanism selection
# avalable:
# cbm04 cbm05 mozart racm2 radm2 saprc99 saprc07 ghg
#
MECHA=radm2
# Si saprc07 AQM_SELECT = 0 WRF 1 CHIMERE
AQM_SELECT=0
# Build the namelist_emis.nml file
# Cambiar aqui la fecha
mes=5
dia=11
dia2=11
#
# Aqui cambiar el año a modelar
#
nyear=2016
#
# Si se desea un archivo de 24 hrs nfile=1
# dos archivos de 12 hrs nfile=2
nfile=1
##### END OF USER MODIFICATIONS #####
source functions.sh
check_domain $dominio
make_tmpdir tmp$dominio
hace_namelist $dia $dia
hace_area &
hace_movil
wait
#
# Starts Loop for Time
#
echo -e " \033[1;44m Starting run Time Loop \033[0m"
while [ $dia -le $dia2 ] ;do
if [ -d dia$dia ]
then
cd dia$dia
else
mkdir dia$dia
cd dia$dia
fi
hace_namelist $dia -$dia
echo "Working Directory "$PWD
echo ' Mes ='$mes 'DIA '$dia
emis_area &
emis_fijas &
emis_movil &
wait
ln -fs ../chem/namelist.* .
../bin/emiss.exe > ../${MECHA}.log
if [ ! -d ../../inventario/${dominio} ]
then
mkdir -p ../../inventario/${dominio}
fi
mv *00\:00 ../../inventario/${dominio}
cd ..
echo -e " \033[1;34m DONE STORING "$MECHA $dia "\033[0m"
let dia=dia+1
done