1. Setting an empty mapper

Before going further, let’s initialize properly the mapper. The template proposes an example of working mapper with no inputs nor outputs.

pycif.plugins.models.template.ini_mapper(model, general_mapper={}, backup_comps={}, transforms_order=[], ref_transform='', transform_name='', all_transforms=None, **kwargs)[source]

The corresponding Yaml to do it is the one below:

 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  !join [*rootdir, /.tox/py38/tmp]
14verbose: 2
15workdir:  !join [*outdir, /3_emptymapper]
16logfile: log.txt
17datei: 2000-01-01 00:00:00
18datef: 2000-02-01 00:00:00
19
20###############################################################################
21
22# http://community-inversion.eu/documentation/plugins/models/template.html
23
24model:
25  plugin:
26    name: template
27    version: std
28
29  require_domain: true
30
31###############################################################################
32
33# http://community-inversion.eu/documentation/plugins/domains/dummy.html
34
35domain:
36  plugin:
37    name: dummy
38    version: std
39
40  nlat: 15
41  nlon: 10
42  xmax: 50
43  xmin: -10
44  ymax: 60
45  ymin: 40
46
47###############################################################################
48
49# http://community-inversion.eu/documentation/plugins/obsoperators/standard.html
50
51obsoperator:
52  plugin:
53    name: standard
54    version: std

Compared to the yaml from previous steps, the paragraph obsoperator was added. This paragraph forces to initialize an execution pipeline, hence requires the initialization of the mapper. Please consult the corresponding obsoperator page for further details.