CHIMERE model training course
International Research Network ChimSur
Characterizing spatial-temporal evolution of atmospheric composition in the south cone with CHIMERE
Sept. 4, 2024, CIMA-IFAECI (Buenos Aires)
Guillaume Siour (LISA), Sylvain Mailler (LMD).
Get CHIMERE and emiSURF
cd salidas
tar xvf /salidas3/guillaume.siour/ARCHIVES/chimere_v2023r2.tar
tar xvf /salidas3/ guillaume.siour/ARCHIVES/emiSURF_v2023r1.tar
Horizontal domain definition: edit domains/domainlist.nml
# Each domain definition:
# Domain e_we e_sn dx dy geores dt ref_lat ref_lon Proj
PAPILA 263 340 27000 27000 modis_landuse_20class_30s_with_lakes 100 -26.7 -61. mercator
BUENOSA 58 58 9000 9000 modis_landuse_20class_30s_with_lakes 100 -35. -58.1 mercator
BUENOSAn 58 58 9000 9000 modis_landuse_20class_30s_with_lakes 100 -26.7 -61. mercator
Horizontal domain definition: domains/domainlist.nml nesting case
# Nested domains (parent i,j are given by DomainWizard or manually chosen)
# format should be in the following order:
# NEST Nested_domain Coarse_domain grid_ratio iparst jparst
NEST BUENOSAn PAPILA 3 133 125
iparst
jparst
Coarse_domain
Nested_domain
Create your domain
[$istopchemprep] Make chemical input data and exit (0/1) : 1
chimere.par : User defined parameters
[$parameter_name] Parameter description : value1, value2, …valueN
chimere.par : User defined parameters
[$parameter_name] Parameter description : value1, value2, …valueN
ON THE LEFT:
chimere.par : User defined parameters
[$parameter_name] Parameter description : value1, value2, …valueN
ON THE LEFT:
SEPARATOR
:
chimere.par : User defined parameters
[$parameter_name] Parameter description : value1, value2, …valueN
ON THE RIGHT:
ON THE LEFT:
SEPARATOR
:
Define your simulation domain in chimere.buenosa.par
# run list is separated by blank spaces. 1 to take the first column, 2 for the second, and so on.
# 1 2 to run the first and then the second right after
runs : 1
Which column to treat ?
Define your simulation domain in chimere.buenosa.par
# CHIMERE simulation domain
[$nested] Nested run? (yes/no) : no, yes
[$dom] CHIMERE domain : BUENOSA, dom2
[$nlevels] Number of vertical layers : 15
[$pres_topdom] Top layer pressure : 200
[$pres_top1lev] First layer pressure : 998
BUENOSA is the domain we have defined above in domainlist.nml
# run list is separated by blank spaces. 1 to take the first column, 2 for the second, and so on.
# 1 2 to run the first and then the second right after
runs : 1
Which column to treat ?
Define your simulation domain in chimere.buenosa.par
# CHIMERE simulation domain
[$nested] Nested run? (yes/no) : no, yes
[$dom] CHIMERE domain : BUENOSA, dom2
[$nlevels] Number of vertical layers : 15
[$pres_topdom] Top layer pressure : 200
[$pres_top1lev] First layer pressure : 998
# Processors
[$nproc_chimere] Number of CHIMERE processors : 20
[$nproc_wrf] Number of WRF processors : 10
[$nproc_xios] Number of xios processors : 2
BUENOSA is the domain we have defined above in domainlist.nml
Most of the time :
nproc_chimere>>nproc_wrf
nproc_xios : 2 (for I/O)
# run list is separated by blank spaces. 1 to take the first column, 2 for the second, and so on.
# 1 2 to run the first and then the second right after
runs : 1
Which column to treat ?
Define your simulation domain in chimere.buenosa.par
# CHIMERE simulation domain
[$nested] Nested run? (yes/no) : no, yes
[$dom] CHIMERE domain : BUENOSA, dom2
[$nlevels] Number of vertical layers : 15
[$pres_topdom] Top layer pressure : 200
[$pres_top1lev] First layer pressure : 998
# Processors
[$nproc_chimere] Number of CHIMERE processors : 20
[$nproc_wrf] Number of WRF processors : 10
[$nproc_xios] Number of xios processors : 2
BUENOSA is the domain we have defined above in domainlist.nml
Most of the time :
nproc_chimere>>nproc_wrf
nproc_xios : 2 (for I/O)
# run list is separated by blank spaces. 1 to take the first column, 2 for the second, and so on.
# 1 2 to run the first and then the second right after
runs : 1
Which column to treat ?
# Simulation output labels and directories
[$lab] Simulation label : BUENOSA
[$clab] Coarse domain label : dom1
[$sim] Current run label : ${idatestart}_${nhours}_${lab}
[$simuldir] Simulation output directory : /salidas3/`whoami`/CHIMOUT/${lab}
[$coarsedir] Simulation output directory : /salidas3/`whoami`/CHIMOUT/${clab}
$lab can be used to define path
it also defines output file names
# Simulation output labels and directories
[$istopdom] Make domains and exit(0/1) : 1
We need to construct the domain first
Launch chimere - geogrid
#take interactive node
qsub -I -X -l nodes=1:ppn=12 -l walltime=1:00:00
#launch chimere (after returning into the chimere_v2023r2 directory)
./chimere.sh -par chimere.buenosa.par -todo s -startdate 2022010100 -hours 24 -restart optional
Launch chimere - geogrid
#take interactive node
qsub -I -X -l nodes=1:ppn=12 -l walltime=1:00:00
#launch chimere (after returning into the chimere_v2023r2 directory)
./chimere.sh -par chimere.buenosa.par -todo s -startdate 2022010100 -hours 24 -restart optional
Launch chimere - geogrid
ncview ~/salidas/chimere_v2023r2/domains/BUENOSA/geog_BUENOSA.nc
#take interactive node
qsub -I -X -l nodes=1:ppn=12 -l walltime=1:00:00
#launch chimere (after returning into the chimere_v2023r2 directory)
./chimere.sh -par chimere.buenosa.par -todo s -startdate 2022010100 -hours 24 -restart optional
Build emissions: emisurf
emisurf.buenosa.par
# Number of processors to use in 'domain' parallel mode
[$npx] : 1
[$npy] : 1
[$first_month] : 01
[$last_month] : 01
# Years to simulate or scenario
[$scenlist] : 2022
# Apply summer/winter time in netcdf files for emissions
# sumwintime=0 no (prefer this option for southern hemisphere cases or cclimatic cases to minimize errors)
# sumwintime=1 yes (adopt a 1 hour win/sum time from april to October files for the whole donain)
# All necessary information is stored in the output emission file to manage the winter/summer shift at the grid level,
# This will be done in the next CHIMERE version
[$sumwintime] : 0
emisurf.buenosa.par
# CHIMERE and local parameters
# where is the chimere model? (we need its makefiles)
[$chimeredir] : /salidas3/`whoami`/chimere_v2020r2
# what is your chimere domain for these emissions?
[$dom] : BUENOSA
[$exp] : CAMS
# where do you want the results
[$outdir] : /salidas3/`whoami`/EMISURFOUT/${dom}_${exp}
[$domainsdir] : ${chimeredir}/domains
# possible sources: EMEP01x01, CAMS, HTAP01, RCP85
[$emisdatabase] : CAMS
# link to geog file used only if use_geog=True
[$geogfile] : ${chimeredir}/domains/${dom}/geog_${dom}.nc
[$use_geog] : True
emisurf: launch it
#take interactive node
qsub -I -X -l nodes=1:ppn=12 -l walltime=1:00:00
#launch emisurf
./emisurf.sh emisurf.buenosa.par
emisurf: launch it
#take interactive node
qsub -I -X -l nodes=1:ppn=12 -l walltime=1:00:00
#launch emisurf
./emisurf.sh emisurf.buenosa.par
emisurf: launch it
#take interactive node
qsub -I -X -l nodes=1:ppn=12 -l walltime=1:00:00
#launch emisurf
./emisurf.sh emisurf.buenosa.par
Launch chimere
#take interactive node
qsub -I -X -l nodes=1:ppn=32 -l walltime=1:00:00
#launch chimere
./chimere.sh -par ${chimparams} -todo s -startdate 2022010100 -hours 24 -restart optional
Launch chimere
#take interactive node
qsub -I -X -l nodes=1:ppn=32 -l walltime=1:00:00
#launch chimere
./chimere.sh -par ${chimparams} -todo s -startdate 2022010100 -hours 24 -restart optional
Launch chimere
#take interactive node
qsub -I -X -l nodes=1:ppn=32 -l walltime=1:00:00
#launch chimere
./chimere.sh -par ${chimparams} -todo s -startdate 2022010100 -hours 24 -restart optional