metadata.yml 7.48 KB
Newer Older
1
2
3
4
5
6
7
join:
  - tracking_id
  - creation_date

drop:
  - history

8
index_functions:
9
10
11
12
13
  count_occurrences:
    description: |
      Calculates the number of times some condition is met.
      First, the threshold is transformed to the same standard_name and units as
      the input data.
14
15
16
      Then the thresholding is performed as condition(data, threshold), ie
      if condition is <, data < threshold.
      Finally, count the number of occurrences when condition is met.
17
18
19
20
21
22
    parameters:
      threshold:
        kind: quantity
      condition:
        kind: operator

23
24
25
26
27
28
  spell_length:
    description: |
      Calculates statistics on lengths of spells.
      First, the threshold is transformed to the same standard_name and units as
      the input data.
      Then the thresholding is performed as condition(data, threshold),
29
      ie if condition is <, data < threshold.
30
31
32
33
34
35
36
37
38
39
      Then the spells are determined, and finally the statistics according to
      the specified reducer are calculated.
    parameters:
      threshold:
        kind: quantity
      condition:
        kind: operator
      reducer:
        kind: reducer

40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
  thresholded_statistics:
    description: |
      Calculates a simple statistic of the data for which some condition is met.
      First, the threshold is transformed to the same standard_name and units as
      the input data.
      Then the thresholding is performed as condition(data, threshold), ie
      if condition is <, data < threshold.
      Finally, the statistic is calculated for those data values that fulfill
      the condition.
    parameters:
      threshold:
        kind: quantity
      condition:
        kind: operator
      reducer:
        kind: reducer

57
indices:
Klaus Zimmermann's avatar
Klaus Zimmermann committed
58
  cdd:
59
    reference: ETCCDI
60
61
62
    period:
      allowed:
        annual:
63
        seasonal:
64
65
        monthly:
      default: annual
66
    output:
67
      var_name: cdd
68
      standard_name: spell_length_of_days_with_lwe_thickness_of_precipitation_amount_below_threshold
69
      proposed_standard_name: spell_length_with_lwe_thickness_of_precipitation_amount_below_threshold
70
71
72
73
74
75
76
      long_name: Maximum consecutive dry days (Precip < 1mm)
      units: days
      cell_methods:
        - time: sum within days
        - time: sum over days
    input:
      var_name: pr
77
      standard_name: precipitation_flux
78
79
      cell_methods:
        - time: sum
80
81
82
83
84
85
    index_function:
      name: spell_length
      parameters:
        threshold:
          kind: quantity
          long_name: Threshold value for daily precipitation amount (liquid water equivalent)
86
          standard_name: lwe_precipitation_rate
87
          data: 1
88
          units: mm day-1
89
90
91
92
93
94
        condition:
          kind: operator
          operator: <
        reducer:
          kind: reducer
          reducer: max
95
96
97
98
99
    ET:
      short_name: cdd
      long_name: Consecutive dry days
      definition: Maximum number of consecutive days with P<1mm
      comment: maximum consecutive days when daily total precipitation is below 1 mm
Renate Wilcke's avatar
Renate Wilcke committed
100
101

  cwd:
102
    reference: ETCCDI
Renate Wilcke's avatar
Renate Wilcke committed
103
104
105
    period:
      allowed:
        annual:
106
        seasonal:
Renate Wilcke's avatar
Renate Wilcke committed
107
108
109
        monthly:
      default: annual
    output:
110
      var_name: cwd
Renate Wilcke's avatar
Renate Wilcke committed
111
      standard_name: spell_length_of_days_with_lwe_thickness_of_precipitation_amount_above_threshold
112
113
      proposed_standard_name: spell_length_of_days_with_lwe_thickness_of_precipitation_amount_at_or_above_threshold
      long_name: Maximum consecutive wet days (Precip >= 1mm)
Renate Wilcke's avatar
Renate Wilcke committed
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
      units: days
      cell_methods:
        - time: sum within days
        - time: sum over days
    input:
      var_name: pr
      standard_name: precipitation_flux
      cell_methods:
        - time: sum
    index_function:
      name: spell_length
      parameters:
        threshold:
          kind: quantity
          long_name: Threshold value for daily precipitation amount (liquid water equivalent)
          standard_name: lwe_precipitation_rate
          data: 1
          units: mm day-1
        condition:
          kind: operator
134
          operator: '>='
Renate Wilcke's avatar
Renate Wilcke committed
135
136
137
138
139
140
        reducer:
          kind: reducer
          reducer: max
    ET:
      short_name: cwd
      long_name: Consecutive wet days
141
      definition: Maximum number of consecutive days with P>=1mm
Renate Wilcke's avatar
Renate Wilcke committed
142
      comment: maximum consecutive days when daily total precipitation is at or above 1 mm
Lars Bärring's avatar
Lars Bärring committed
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174

  r10mm:
    reference: ETCCDI
    period:
      allowed:
        annual:
        seasonal:
        monthly:
      default: monthly
    output:
      var_name: r10mm
      standard_name: number_of_days_with_lwe_thickness_of_precipitation_amount_above_threshold
      proposed_standard_name: number_occurrences_with_lwe_thickness_of_precipitation_amount_at_or_above_threshold
      long_name: Number of heavy precipitation days (Precip >=10 mm)
      units: days
      cell_methods:
        - time: sum within days
        - time: sum over days
    input:
      var_name: pr
      standard_name: precipitation_flux
      cell_methods:
        - time: sum
    index_function:
      name: count_occurrences
      parameters:
        threshold:
          kind: quantity
          long_name: Threshold value for daily precipitation amount (liquid water equivalent)
          standard_name: lwe_precipitation_rate
          data: 10
          units: mm day-1
175
        condition:
Lars Bärring's avatar
Lars Bärring committed
176
          kind: operator
177
          operator: '>='
Lars Bärring's avatar
Lars Bärring committed
178
179
180
181
    ET:
      short_name: R10mm
      long_name: Number of heavy precipitation days
      definition: Count of days when P>=10mm
182
      comment: Count of days when daily total precipitation is above 10 mm
Renate Wilcke's avatar
Renate Wilcke committed
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221

  su:
    reference: ETCCDI
    period:
      allowed:
        annual:
        monthly:
        seasonal:
      default: annual
    output:
      var_name: su
      standard_name: number_of_days_with_air_temperature_above_threshold
      long_name: Number of Summer Days (Tmax > 25C)
      units: days
      cell_methods:
        - time: maximum within days
        - time: sum over days
    input:
      var_name: tasmax
      standard_name: air_temperature
      cell_methods:
        - time: maximum
    index_function:
      name: count_occurrences
      parameters:
        threshold:
          kind: quantity
          long_name: Threshold value for daily maximum air temperature
          standard_name: air_temperature
          data: 25
          units: degree_Celsius
        condition:
          kind: operator
          operator: '>'
    ET:
      short_name: su
      long_name: Number of Summer days
      definition: Count of days when TX>25C
      comment: Count of days when daily maximum temperature is above plus 25 degC
Lars Bärring's avatar
Lars Bärring committed
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263

  sdii:
    reference: ETCCDI
    period:
      allowed:
        annual:
        monthly:
        seasonal:
      default: annual
    output:
      var_name: sdii
      standard_name: lwe_precipitation_rate
      long_name: Average precipitation during Wet Days (SDII)
      units: mm day-1
      cell_methods:
        - time: sum within days
        - time: mean over days
    input:
      var_name: pr
      standard_name: precipitation_flux
      cell_methods:
        - time: sum
    index_function:
      name: thresholded_statistics
      parameters:
        threshold:
          kind: quantity
          long_name: Threshold value for daily precipitation amount
          standard_name: lwe_precipitation_rate
          data: 1
          units: mm day-1
        condition:
          kind: operator
          operator: '>='
        reducer:
          kind: reducer
          reducer: mean
    ET:
      short_name: sdii
      long_name: Simple precipitation intensity index
      definition: PRCPTOT / Nwetdays
      comment: Mean daily total precipitation during days having at least 1 mm