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

{% endfor %}