index_definitions.yml 1.42 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
indices:
{% for idx in indices %}
  {{ idx.var_name }}:
    reference: ETCCDI
    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 }}
      # cell_methods: {{ idx.output.cell_methods }}
    input:
{% for input in idx.inputs %}
      var_name: {{ input.var_name }}
      standard_name: {{ input.standard_name }}
      # cell_methods: {{ input.cell_methods }}
{% endfor %}
    index_function:
      name: {{ idx.index_function.name }}
      parameters:
{% for param in idx.index_function.parameters %}
{% if param.kind == 'quantity' %}
        {{ param.var_name }}:
          kind: {{ param.kind }}
          standard_name: {{ param.standard_name }}
          data: {{ param.data }}
          units: {{ param.units }}
{% elif param.kind == 'operator' %}
        {{ param.var_name }}:
          kind: {{ param.kind }}
          operator: {{ param.operator }}
{% endif %}
{% endfor %}
    ET:
      short_name: {{ idx.ET.short_name }}
      long_name: {{ idx.ET.long_name }}
      definition: {{ idx.ET.definition }}
      comment: {{ idx.ET.comment }}

{% endfor %}