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  !join [*rootdir, /.tox/py38/tmp]
14verbose: 2
15workdir:  !join [*outdir, /2-2_validdomain]
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

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.