Setting an empty mapper

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 /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- 3_emptymapper
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
36###############################################################################
37
38# http://community-inversion.eu/documentation/plugins/domains/dummy.html
39
40domain:
41  plugin:
42    name: dummy
43    version: std
44
45  nlat: 15
46  nlon: 10
47  xmax: 50
48  xmin: -10
49  ymax: 60
50  ymin: 40
51
52###############################################################################
53
54# http://community-inversion.eu/documentation/plugins/obsoperators/standard.html
55
56obsoperator:
57  plugin:
58    name: standard
59    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.