Create a domain for your model

Create a domain for your model#

By default, the template domain does not require any domain to initialize. However, to go further, all models are required to have a domain.

This is used to match observation locations to the correct model grid cells, to regrid inputs to the correct domain, etc.

Try the following Yaml that should return an error because the domain is not defined.

 1verbose: 1
 2workdir: ~/model_test/
 3logfile: log.txt
 4datei: 2000-01-01
 5datef: 2000-02-01
 6model:
 7  plugin:
 8    name: template
 9    version: std
10  require_domain: True

Then try the following Yaml that uses the default Gaussian domain to meet the model requirements:

 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- 2-2_validdomain
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

This will generate a folder domain in your work directory with coordinates as generated by the domain.

Please consult the documentation page for domains to further implement your own domain.