Generating inputs for LMDZ from GCP standard files#
First inputs should be generated from the original GCP standard format to LMDZ model.
The Yaml below generates emissions files from GCP data with LMDZ format.
For each emission category, one LMDZ emission file is generated.
This is done using the dump2format
transforms in the controlvect
paragraph.
The families
transforms allow to group categories with each others.
Files are generated in the folder obsoperator/fwd_0000/%Y-%m-%d_00-00/.
1rootdir: &rootdir /tmp/CIF/
2outdir: &outdir !join [*rootdir, /.tox/py38/tmp]
3verbose: 1
4logfile: pyvar.logtest
5workdir: !join [*outdir, /gcp]
6datei: 2019-01-01 00:00:00
7datef: 2019-02-01 00:00:00
8platform:
9 plugin:
10 name: docker
11 version: cif
12model:
13 plugin:
14 name: LMDZ
15 version: std
16 periods: 1MS
17 fileexec: !join [*rootdir, /model_sources/DISPERSION_gch/dispersion.16x9x19.e]
18 auto-recompile: true
19 force-recompile: true
20 file_controle: /tmp/PYCIF_DATA_TEST/LMDZ/ACAD/restart/ELI-16x9x19ST-AP_2020_start.nc
21 physics: true
22 thermals: true
23 conv_scheme: TK
24 do_chemistry: false
25 nfilun: 3
26 nfilus: 2
27 nproc: 1
28chemistry:
29 schemeid: LMDZ_CH4_no_chem
30 acspecies:
31 CH4:
32 restart_id: 1
33 mass: 16.0425
34 emis_species:
35 CH4: null
36obsoperator:
37 plugin:
38 name: standard
39 version: std
40 autorestart: true
41 save_debug: true
42 init_inputs:
43 components:
44 flux: []
45obsvect:
46 dump: true
47 plugin:
48 name: standard
49 version: std
50controlvect:
51 plugin:
52 name: standard
53 version: std
54 transform_pipe:
55 dump_flx_anthropo_1:
56 plugin:
57 name: dump2format
58 version: std
59 type: transform
60 component: flux_anthropogenic
61 parameter: CH4_biofuels
62 dump_file: 'fch4.biofuels.gcp2022.ciflmdz.%Y%m.nc'
63 dump_format:
64 name: LMDZ
65 version: sflx
66 type: flux
67 dump_flx_anthropo_2:
68 plugin:
69 name: dump2format
70 version: std
71 type: transform
72 component: flux_anthropogenic
73 parameter: CH4_biomass
74 dump_file: 'fch4.biomass.gcp2022.ciflmdz.%Y%m.nc'
75 dump_format:
76 name: LMDZ
77 version: sflx
78 type: flux
79 dump_flx_anthropo_3:
80 plugin:
81 name: dump2format
82 version: std
83 type: transform
84 component: flux_anthropogenic
85 parameter: CH4_coal
86 dump_file: 'fch4.coal.gcp2022.ciflmdz.%Y%m.nc'
87 dump_format:
88 name: LMDZ
89 version: sflx
90 type: flux
91 dump_flx_anthropo_4:
92 plugin:
93 name: dump2format
94 version: std
95 type: transform
96 component: flux_anthropogenic
97 parameter: CH4_livestock
98 dump_file: 'fch4.livestock.gcp2022.ciflmdz.%Y%m.nc'
99 dump_format:
100 name: LMDZ
101 version: sflx
102 type: flux
103 dump_flx_anthropo_5:
104 plugin:
105 name: dump2format
106 version: std
107 type: transform
108 component: flux_anthropogenic
109 parameter: CH4_oilgasind
110 dump_file: 'fch4.oilgasind.gcp2022.ciflmdz.%Y%m.nc'
111 dump_format:
112 name: LMDZ
113 version: sflx
114 type: flux
115 dump_flx_anthropo_6:
116 plugin:
117 name: dump2format
118 version: std
119 type: transform
120 component: flux_anthropogenic
121 parameter: CH4_rice
122 dump_file: 'fch4.rice.gcp2022.ciflmdz.%Y%m.nc'
123 dump_format:
124 name: LMDZ
125 version: sflx
126 type: flux
127 dump_flx_anthropo_7:
128 plugin:
129 name: dump2format
130 version: std
131 type: transform
132 component: flux_anthropogenic
133 parameter: CH4_waste
134 dump_file: 'fch4.waste.gcp2022.ciflmdz.%Y%m.nc'
135 dump_format:
136 name: LMDZ
137 version: sflx
138 type: flux
139 sum_anthropo:
140 plugin:
141 name: families
142 version: std
143 type: transform
144 component: flux_anthropogenic
145 parameters_in:
146 - CH4_biofuels
147 - CH4_biomass
148 - CH4_coal
149 - CH4_livestock
150 - CH4_oilgasind
151 - CH4_rice
152 - CH4_waste
153 component_out: flux
154 parameter_out: CH4_anthropogenic
155 dump_flx_anthropo_all:
156 plugin:
157 name: dump2format
158 version: std
159 type: transform
160 component: flux
161 parameter: CH4_anthropogenic
162 dump_file: 'fch4.anthropogenic.gcp2022.ciflmdz.%Y%m.nc'
163 dump_format:
164 name: LMDZ
165 version: sflx
166 type: flux
167 dump_flx_natural_1:
168 plugin:
169 name: dump2format
170 version: std
171 type: transform
172 component: flux_natural
173 parameter: CH4_freshwaters
174 dump_file: 'fch4.freshwaters.gcp2022.ciflmdz.%Y%m.nc'
175 dump_format:
176 name: LMDZ
177 version: sflx
178 type: flux
179 dump_flx_natural_2:
180 plugin:
181 name: dump2format
182 version: std
183 type: transform
184 component: flux_natural
185 parameter: CH4_geological
186 dump_file: 'fch4.geological.gcp2022.ciflmdz.%Y%m.nc'
187 dump_format:
188 name: LMDZ
189 version: sflx
190 type: flux
191 dump_flx_natural_3:
192 plugin:
193 name: dump2format
194 version: std
195 type: transform
196 component: flux_natural
197 parameter: CH4_ocean
198 dump_file: 'fch4.ocean.gcp2022.ciflmdz.%Y%m.nc'
199 dump_format:
200 name: LMDZ
201 version: sflx
202 type: flux
203 dump_flx_natural_4:
204 plugin:
205 name: dump2format
206 version: std
207 type: transform
208 component: flux_natural
209 parameter: CH4_soils
210 dump_file: 'fch4.soils.gcp2022.ciflmdz.%Y%m.nc'
211 dump_format:
212 name: LMDZ
213 version: sflx
214 type: flux
215 dump_flx_natural_5:
216 plugin:
217 name: dump2format
218 version: std
219 type: transform
220 component: flux_natural
221 parameter: CH4_termites
222 dump_file: 'fch4.termites.gcp2022.ciflmdz.%Y%m.nc'
223 dump_format:
224 name: LMDZ
225 version: sflx
226 type: flux
227 dump_flx_natural_6:
228 plugin:
229 name: dump2format
230 version: std
231 type: transform
232 component: flux_natural
233 parameter: CH4_wetlands
234 dump_file: 'fch4.wetlands.gcp2022.ciflmdz.%Y%m.nc'
235 dump_format:
236 name: LMDZ
237 version: sflx
238 type: flux
239 sum_natural:
240 plugin:
241 name: families
242 version: std
243 type: transform
244 component: flux_natural
245 parameters_in:
246 - CH4_freshwaters
247 - CH4_geological
248 - CH4_ocean
249 - CH4_soils
250 - CH4_termites
251 - CH4_wetlands
252 component_out: flux
253 parameter_out: CH4_natural
254 dump_flx_natural_all:
255 plugin:
256 name: dump2format
257 version: std
258 type: transform
259 component: flux
260 parameter: CH4_natural
261 dump_file: 'fch4.natural.gcp2022.ciflmdz.%Y%m.nc'
262 dump_format:
263 name: LMDZ
264 version: sflx
265 type: flux
266 sum_all:
267 plugin:
268 name: families
269 version: std
270 type: transform
271 component: flux
272 parameters_in:
273 - CH4_anthropogenic
274 - CH4_natural
275 component_out: flux
276 parameter_out: CH4
277 dump_flx_all:
278 plugin:
279 name: dump2format
280 version: std
281 type: transform
282 component: flux
283 parameter: CH4
284 dump_file: 'fch4.total.gcp2022.ciflmdz.%Y%m.nc'
285 dump_format:
286 name: LMDZ
287 version: sflx
288 type: flux
289datavect:
290 plugin:
291 name: standard
292 version: std
293 components:
294 meteo:
295 plugin:
296 name: LMDZ
297 version: mass-fluxes
298 dir: /tmp/PYCIF_DATA_TEST/LMDZ/ACAD/mass-fluxes
299 file_freq: 1MS
300 flux_anthropogenic:
301 file_freq: 1MS
302 dir: /tmp/PYCIF_DATA_TEST/RAW/EMISSIONS/GCP-CH4/ANTHROPOGENIC
303 varname: fch4
304 parameters:
305 CH4_biofuels:
306 plugin:
307 name: GCP
308 version: 1x1
309 type: flux
310 file: fch4.biofuels.edgarv6.1x1.2000-2020.nc
311 CH4_coal:
312 plugin:
313 name: GCP
314 version: 1x1
315 type: flux
316 file: fch4.coal.edgarv6.1x1.2000-2020.nc
317 CH4_livestock:
318 plugin:
319 name: GCP
320 version: 1x1
321 type: flux
322 file: fch4.livestock.edgarv6.1x1.2000-2020.nc
323 CH4_oilgasind:
324 plugin:
325 name: GCP
326 version: 1x1
327 type: flux
328 file: fch4.oilgasind.edgarv6.1x1.2000-2020.nc
329 CH4_rice:
330 plugin:
331 name: GCP
332 version: 1x1
333 type: flux
334 file: fch4.rice.edgarv6.1x1.2000-2020.nc
335 CH4_waste:
336 plugin:
337 name: GCP
338 version: 1x1
339 type: flux
340 file: fch4.waste.edgarv6.1x1.2000-2020.nc
341 CH4_biomass:
342 plugin:
343 name: GCP
344 version: 1x1
345 type: flux
346 file: fch4.biomass.gfedv41s.1x1.2000-2020.nc
347 flux_natural:
348 file_freq: 1MS
349 dir: /tmp/PYCIF_DATA_TEST/RAW/EMISSIONS/GCP-CH4/NATURAL
350 varname: fch4
351 parameters:
352 CH4_freshwaters:
353 plugin:
354 name: GCP
355 version: 1x1
356 type: flux
357 file: fch4.freshwaters.stavert2021.1x1.clim.nc
358 is_climato: true
359 CH4_geological:
360 plugin:
361 name: GCP
362 version: 1x1
363 type: flux
364 file: fch4.geological.scaledEtiope2019.1x1.clim.nc
365 is_climato: true
366 CH4_ocean:
367 plugin:
368 name: GCP
369 version: 1x1
370 type: flux
371 file: fch4.ocean.weber2019.1x1.clim.nc
372 is_climato: true
373 CH4_soils:
374 plugin:
375 name: GCP
376 version: 1x1
377 type: flux
378 file: fch4.soils.murguiaFlores2018.1x1.2000-2020.nc
379 CH4_termites:
380 plugin:
381 name: GCP
382 version: 1x1
383 type: flux
384 file: fch4.termites.saunois2020.1x1.clim.nc
385 is_climato: true
386 CH4_wetlands:
387 plugin:
388 name: GCP
389 version: 1x1
390 type: flux
391 file: fch4.wetlands.saunois2020.1x1.clim.nc
392 is_climato: true
393domain:
394 plugin:
395 name: LMDZ
396 version: std
397 filegrid: /tmp/PYCIF_DATA_TEST/LMDZ/ACAD/grid_LMDZ16_10.txt
398 dir_vcoord: /tmp/PYCIF_DATA_TEST/LMDZ/ACAD/restart
399 file_vcoord: ELI-16x9x19ST-AP_2020_start.nc