2. Setting the mapper with output concentrations#
Here, we propose to extract output concentrations from pre-computed output files.
This is possible in the template by using the option only_outputs
in the model
paragraph.
1#####################
2# pyCIF config file #
3#####################
4
5# Define here all parameters for pyCIF following YAML syntax
6# For details on YAML syntax, please see:
7# http://docs.ansible.com/ansible/latest/YAMLSyntax.html
8
9###############################################################################
10# pyCIF parameters
11
12rootdir: &rootdir /tmp/CIF/
13outdir: &outdir /tmp/pytest-of-root/pytest-0
14verbose: 2
15workdir: !!python/object/apply:pathlib.PosixPath
16- /
17- tmp
18- pytest-of-root
19- pytest-0
20- 4_onlyconcs
21logfile: log.txt
22datei: 2000-01-01 00:00:00
23datef: 2000-02-01 00:00:00
24
25###############################################################################
26
27# http://community-inversion.eu/documentation/plugins/models/template.html
28
29model:
30 plugin:
31 name: template
32 version: std
33
34 require_domain: true
35 require_chemistry: true
36 only_outputs: true
37
38###############################################################################
39
40# http://community-inversion.eu/documentation/plugins/modes/forward.html
41
42mode:
43 plugin:
44 name: forward
45 version: std
46
47###############################################################################
48
49# http://community-inversion.eu/documentation/plugins/domains/dummy.html
50
51domain:
52 plugin:
53 name: dummy
54 version: std
55
56 nlat: 15
57 nlon: 10
58 xmax: 50
59 xmin: -10
60 ymax: 60
61 ymin: 40
62
63###############################################################################
64
65# http://community-inversion.eu/documentation/plugins/obsoperators/standard.html
66
67obsoperator:
68 plugin:
69 name: standard
70 version: std
71
72###############################################################################
73
74chemistry:
75 schemeid: template_CO2
76 acspecies:
77 CO2:
78 restart_id: 1
79 mass: 12
80 emis_species:
81 CO2: null
82
83###############################################################################
84
85# http://community-inversion.eu/documentation/plugins/datavects/standard.html
86
87datavect:
88 plugin:
89 name: standard
90 version: std
91
92 components:
93 concs:
94 parameters:
95 CO2:
96 plugin:
97 name: random
98 type: measurements
99 version: param
100 duration: 2H22min
101 frequency: 1h
102 nstations: 1
103 seed: true
104 zmax: 100
Compared to the previous yaml, the following elements have been added:
mode
paragraph: this is the execution mode. It is needed for pyCIF to go further than the initialization step. Here we are computing a forward simulation to compare simulations with observationschemistry
paragraph: this paragraph indicates information about species to be transported and/or emitted in the modeldatavect
paragraph: this paragraph indicated all required information about pyCIF inputs. Further details is given here
In the example above, observations are generated at random locations. If one needs/wants to use a file of its own making, please refer to the dedicated documentation page about observation inputs (here) to properly prepare the file.
Once successfully running, the forward working files are saved in the folder
$runsubdir/obsoperator/fwd_0000/
. In particular, the output simulations
and corresponding observations are saved here: $runsubdir/obsoperator/fwd_0000/obsvect
.