index_definitions.yml 2.21 KB
Newer Older
1
2
3
4
5
# These index definitions are auto-generated from the master table at
# https://bitbucket.org/cf-index-meta/cf-index-meta

# This is based on version {{ version }}.
---
6
7
8
indices:
{% for idx in indices %}
  {{ idx.var_name }}:
9
    reference: {{- idx.reference|add_space }}
10
11
12
    period:
      allowed:
{% for p in idx.period.allowed %}
13
        {{ p }}:
14
{% endfor %}
15
      default: {{- idx.period.default|add_space }}
16
    output:
17
18
      var_name: {{- idx.output.var_name|add_space(quote=True) }}
      standard_name: {{- idx.output.standard_name|add_space }}
19
{% if idx.output.proposed_standard_name %}
20
      proposed_standard_name: {{- idx.output.proposed_standard_name|add_space }}
21
{% endif %}
22
23
      long_name: {{- idx.output.long_name|add_space(quote=True) }}
      units: {{- idx.output.units|add_space(quote=True) }}
24
25
26
27
      cell_methods:
{% for cm in idx.output.cell_methods %}
        - {{ cm }}
{% endfor %}
28
    input:
29
30
{% for argname, variable in idx.inputs.items() %}
      {{ argname }}: {{- variable|add_space }}
31
32
{% endfor %}
    index_function:
33
      name: {{- idx.index_function.name|add_space }}
34
35
36
      parameters:
{% for param in idx.index_function.parameters %}
        {{ param.var_name }}:
37
          kind: {{- param.kind|add_space }}
38
{% if param.kind == 'quantity' %}
39
40
41
42
43
44
45
46
47
          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) }}
48
{% elif param.kind == 'operator' %}
49
          operator: {{- param.operator|add_space(quote=True) }}
50
{% elif param.kind == 'reducer' %}
51
          reducer: {{- param.reducer|add_space }}
52
53
{% else %}
          # Warning: Unknown kind!
54
55
56
{% endif %}
{% endfor %}
    ET:
57
58
59
60
61
      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 %}
62

63
{% endif %}
64
{% endfor %}