index_definitions.yml 2.04 KB
Newer Older
1
2
3
indices:
{% for idx in indices %}
  {{ idx.var_name }}:
4
    reference: {{- idx.reference|add_space }}
5
6
7
    period:
      allowed:
{% for p in idx.period.allowed %}
8
        {{ p }}:
9
{% endfor %}
10
      default: {{- idx.period.default|add_space }}
11
    output:
12
13
      var_name: {{- idx.output.var_name|add_space(quote=True) }}
      standard_name: {{- idx.output.standard_name|add_space }}
14
{% if idx.output.proposed_standard_name %}
15
      proposed_standard_name: {{- idx.output.proposed_standard_name|add_space }}
16
{% endif %}
17
18
      long_name: {{- idx.output.long_name|add_space(quote=True) }}
      units: {{- idx.output.units|add_space(quote=True) }}
19
20
21
22
      cell_methods:
{% for cm in idx.output.cell_methods %}
        - {{ cm }}
{% endfor %}
23
    input:
24
25
{% for argname, variable in idx.inputs.items() %}
      {{ argname }}: {{- variable|add_space }}
26
27
{% endfor %}
    index_function:
28
      name: {{- idx.index_function.name|add_space }}
29
30
31
      parameters:
{% for param in idx.index_function.parameters %}
        {{ param.var_name }}:
32
          kind: {{- param.kind|add_space }}
33
{% if param.kind == 'quantity' %}
34
35
36
37
38
39
40
41
42
          standard_name: {{- param.standard_name|add_space }}
{% if param.proposed_standard_name is not none %}
          proposed_standard_name: {{- param.proposed_standard_name|add_space }}
{% endif %}
{% if param.long_name is not none %}
          long_name: {{- param.long_name|add_space(quote=True) }}
{% endif %}
          data: {{- param.data|add_space }}
          units: {{- param.units|add_space(quote=True) }}
43
{% elif param.kind == 'operator' %}
44
          operator: {{- param.operator|add_space(quote=True) }}
45
{% elif param.kind == 'reducer' %}
46
          reducer: {{- param.reducer|add_space }}
47
48
{% else %}
          # Warning: Unknown kind!
49
50
51
{% endif %}
{% endfor %}
    ET:
52
53
54
55
56
      short_name: {{- idx.ET.short_name|add_space(quote=True) }}
      long_name: {{- idx.ET.long_name|add_space(quote=True) }}
      definition: {{- idx.ET.definition|add_space(quote=True) }}
      comment: {{- idx.ET.comment|add_space(quote=True) }}
{% if not loop.last %}
57

58
{% endif %}
59
{% endfor %}