-
Notifications
You must be signed in to change notification settings - Fork 128
/
recipe_ocean_example.yml
440 lines (389 loc) · 13.8 KB
/
recipe_ocean_example.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
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
175
176
177
178
179
180
181
182
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
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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
# ESMValTool
# recipe_ocean_example.yml
---
documentation:
title: Ocean physics analysis suite
description: |
Recipe to demonstrate several simple plots based on the monthly ocean
temperature. Please use this file as a template for adding additional
fields into the ocean. This work based on the BGC-val toolkit GMD-2018-103.
authors:
- demora_lee
maintainer:
- demora_lee
references:
- demora2018gmd
projects:
- ukesm
datasets:
# working datasets
# - {dataset: CanESM2, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2004}
# - {dataset: GISS-E2-H, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2004}
# - {dataset: HadGEM2-AO, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2004}
# - {dataset: HadCM3, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2004}
# - {dataset: CanCM4, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2004}
# - {dataset: CSIRO-Mk3-6-0, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2004}
- {dataset: HadGEM2-CC, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2004}
- {dataset: HadGEM2-ES, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2004}
#####
# Data with Errors right now -June 2018
###
# Problem with times
# - {dataset: MIROC-ESM, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2004}
# - {dataset: MIROC-ESM-CHEM, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2004}
# Unstructured grids
# - {dataset: MPI-ESM-LR, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2003}
# - {dataset: MPI-ESM-MR, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2004}
# - {dataset: ACCESS1-0, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2004}
# - {dataset: ACCESS1-3, project: CMIP5, mip: Omon, exp: historical, ensemble: r1i1p1, start_year: 2001, end_year: 2004}
# TODO: All multi-model statistics are turned off until the preprocessor order is fixed.
preprocessors:
# --------------------------------------------------
# Time series preprocessors
# --------------------------------------------------
prep_timeseries_1: # For 2D fields
custom_order: true
area_statistics:
operator: mean
multi_model_statistics:
span: overlap
statistics: [mean ]
prep_timeseries_2: # For specific levels of 3D fields
custom_order: true
extract_levels:
levels: [0., 10., 100., 1000.]
scheme: linear_extrapolate
area_statistics:
operator: mean
multi_model_statistics:
span: overlap
statistics: [mean ]
prep_timeseries_3: # For regional fields
custom_order: true
extract_region:
start_longitude: -80.
end_longitude: 30.
start_latitude: -80.
end_latitude: 80.
area_statistics:
operator: mean
multi_model_statistics:
span: overlap
statistics: [mean ]
prep_timeseries_4: # For regional fields at depth
custom_order: true
extract_levels:
levels: [0., 10., 100., 1000.]
scheme: linear_extrapolate
extract_region:
start_longitude: -80.
end_longitude: 30.
start_latitude: -80.
end_latitude: 80.
area_statistics:
operator: mean
multi_model_statistics:
span: overlap
statistics: [mean ]
prep_timeseries_5: # For Global Volume Averaged
custom_order: true
volume_statistics:
operator: mean
multi_model_statistics:
span: overlap
statistics: [mean ]
prep_timeseries_6: # For regional volume averaged
custom_order: true
extract_region:
start_longitude: -80.
end_longitude: 30.
start_latitude: -80.
end_latitude: 80.
volume_statistics:
operator: mean
multi_model_statistics:
span: overlap
statistics: [mean ]
prep_timeseries_7: # For regional volume averaged (at the surface)
custom_order: true
extract_region:
start_longitude: -80.
end_longitude: 30.
start_latitude: -80.
end_latitude: 80.
extract_volume:
z_min: 0.
z_max: 100.
volume_statistics:
operator: mean
multi_model_statistics:
span: overlap
statistics: [mean ]
# --------------------------------------------------
# Map preprocessors - 2D fields
# --------------------------------------------------
prep_map_1: # For Global 2D fields
climate_statistics:
operator: mean
prep_map_2: # For Global 2D fields with regridding
custom_order: true
regrid:
target_grid: 1x1
scheme: linear
climate_statistics:
operator: mean
# multi_model_statistics:
# span: overlap
# statistics: [mean ]
prep_map_3: # For specific levels of 3D fields with regrid
custom_order: true
extract_levels:
levels: [0., 10., 100., 1000.,]
scheme: linear_extrapolate
climate_statistics:
operator: mean
regrid:
target_grid: 1x1
scheme: linear
# multi_model_statistics:
# span: overlap
# statistics: [mean ]
prep_map_4: # For a specific region with regrid
custom_order: true
extract_region:
start_longitude: -80.
end_longitude: 30.
start_latitude: -80.
end_latitude: 80.
climate_statistics:
operator: mean
regrid:
target_grid: 1x1
scheme: linear
# multi_model_statistics:
# span: overlap
# statistics: [mean ]
prep_map_5: # For a specific region at depth levels,
custom_order: true
extract_levels:
levels: [0., 10., 100., 1000.,]
scheme: linear_extrapolate
climate_statistics:
operator: mean
extract_region:
start_longitude: -80.
end_longitude: 30.
start_latitude: -80.
end_latitude: 80.
regrid:
target_grid: 1x1
scheme: linear
# multi_model_statistics:
# span: overlap
# statistics: [mean ]
# --------------------------------------------------
# Transects preprocessors
# --------------------------------------------------
prep_transect_1: # For extracting along a trajectory
climate_statistics:
operator: mean
extract_trajectory:
latitudes: [-5., 5.,]
longitudes: [332.,332.]
number_points: 4 # VERY SLOW with high numbers!
prep_transect_2: # For extracting a transect
climate_statistics:
operator: mean
extract_transect: # Pacific Equator
latitude: 0.
longitude: [120., 300.]
prep_transect_3: # For extracting a transect
climate_statistics:
operator: mean
extract_transect: # Atlantic Meridional Transect
latitude: [-50.,50.]
longitude: 332.
# --------------------------------------------------
# Depth-profile preprocessors
# --------------------------------------------------
prep_profile_1: # For a global profile
area_statistics:
operator: mean
prep_profile_2: # For a regional profile
extract_region:
start_longitude: 0.
end_longitude: 20.
start_latitude: -30.
end_latitude: 30.
extract_volume:
z_min: 0.
z_max: 100.
area_statistics:
operator: mean
# --------------------------------------------------
# Depth-profile preprocessors
# --------------------------------------------------
prep_depth_integration_1: # For a 2D map global profile
depth_integration:
climate_statistics:
operator: mean
diagnostics:
# --------------------------------------------------
# Depth integrated diagnostics
# --------------------------------------------------
diag_depthInt_1:
description: Global Ocean Surface mean timeseries
variables:
thetao: # Temperature ocean
preprocessor: prep_depth_integration_1
scripts:
Global_Ocean_DepthIntegration_map:
script: ocean/diagnostic_maps.py
# --------------------------------------------------
# Time series diagnostics
# --------------------------------------------------
diag_timeseries_1:
description: Global Ocean Surface mean timeseries
variables:
tos: # Temperature ocean surface
preprocessor: prep_timeseries_1
scripts:
Global_Ocean_Surface_mean_timeseries: &Global_Ocean_Surface_mean_timeseries
script: ocean/diagnostic_timeseries.py
diag_timeseries_2:
description: Global Ocean Depth Layers mean timeseries
variables:
thetao: # Temperature ocean 3D
preprocessor: prep_timeseries_2
scripts:
Global_Ocean_DepthLayers_mean_timeseries: &Global_Ocean_DepthLayers_mean_timeseries
script: ocean/diagnostic_timeseries.py
diag_timeseries_3:
description: Regional scale surface diagnostics
variables:
tos: # Temperature ocean surface
preprocessor: prep_timeseries_3
scripts:
Regional_Ocean_Surface_mean_timeseries: &Regional_Ocean_Surface_mean_timeseries
script: ocean/diagnostic_timeseries.py
diag_timeseries_4:
description: Regional scale diagnostics
variables:
thetao: # Temperature ocean 3D
preprocessor: prep_timeseries_4
scripts:
Regional_Ocean_DepthLayers_mean_timeseries: &Regional_Ocean_DepthLayers_mean_timeseries
script: ocean/diagnostic_timeseries.py
diag_timeseries_5:
description: Global Volume average diagnostics
variables:
thetao: # Temperature ocean 3D
preprocessor: prep_timeseries_5
scripts:
Global_VolumeAverage_Ocean_Physics_timeseries: &Global_VolumeAverage_Ocean_Physics_timeseries
script: ocean/diagnostic_timeseries.py
diag_timeseries_6:
description: Regional Volume average diagnostics
variables:
thetao: # Temperature ocean 3D
preprocessor: prep_timeseries_6
scripts:
Regional_VolumeAverage_Ocean_Physics_timeseries: &Regional_VolumeAverage_Ocean_Physics_timeseries
script: ocean/diagnostic_timeseries.py
diag_timeseries_7:
description: Regional Volume to 100m depth average diagnostics
variables:
thetao: # Temperature ocean 3D averaged over top 100m
preprocessor: prep_timeseries_7
scripts:
Regional_Volume100mAverage_Ocean_Physics_timeseries: &Regional_Volume100mAverage_Ocean_Physics_timeseries
script: ocean/diagnostic_timeseries.py
# --------------------------------------------------
# Map diagnostics
# --------------------------------------------------
diag_map_1:
description: Global Ocean Surface map
variables:
tos: # Temperature ocean surface
preprocessor: prep_map_1
scripts:
Global_Ocean_Surface_mean_map: &Global_Ocean_Surface_mean_map
script: ocean/diagnostic_maps.py
diag_map_2:
description: Global Ocean Surface regridded map
variables:
tos: # Temperature ocean surface
preprocessor: prep_map_2
scripts:
Global_Ocean_Surface_regrid_map: &Global_Ocean_Surface_regrid_map
script: ocean/diagnostic_maps.py
diag_map_3:
description: Global Ocean Depth Layers regridded map
variables:
thetao: # Temperature ocean 3D
preprocessor: prep_map_3
scripts:
Global_Ocean_DepthLayers_regrid_map: &Global_Ocean_DepthLayers_regrid_map
script: ocean/diagnostic_maps.py
diag_map_4:
description: Regional scale surface regridded map
variables:
tos: # Temperature ocean surface
preprocessor: prep_map_4
scripts:
Regional_Ocean_Surface_regrid_map: &Regional_Ocean_Surface_regrid_map
script: ocean/diagnostic_maps.py
diag_map_5:
description: Regional scale depth layers regridded map
variables:
thetao: # Temperature ocean 3D
preprocessor: prep_map_5
scripts:
Regional_Ocean_DepthLayers_mean_map: &Regional_Ocean_DepthLayers_mean_map
script: ocean/diagnostic_maps.py
# --------------------------------------------------
# Transects diagnostics
# --------------------------------------------------
diag_transect_1:
description: Extracting along a trajectory
variables:
thetao: # Temperature ocean 3D
preprocessor: prep_transect_1
scripts:
Regional_Ocean_DepthLayers_regrid_transect: &Regional_Ocean_DepthLayers_regrid_transect
script: ocean/diagnostic_transects.py
diag_transect_2:
description: Extracting along a line with regridding and multimodle mean
variables:
thetao: # Temperature ocean 3D
preprocessor: prep_transect_2
scripts:
Regional_Ocean_DepthLayers_slice_regrid_mmmean_transect: &Regional_Ocean_DepthLayers_slice_regrid_mmmean_transect
script: ocean/diagnostic_transects.py
diag_transect_3:
description: Extracting along a line with regridding and multimodel mean
variables:
thetao: # Temperature ocean 3D
preprocessor: prep_transect_3
scripts:
Regional_Ocean_DepthLayers_AMTslice_regrid_mmmean_transect: &Regional_Ocean_DepthLayers_AMTslice_regrid_mmmean_transect
script: ocean/diagnostic_transects.py
# --------------------------------------------------
# Depth-profile diagnostics
# --------------------------------------------------
diag_profile_1:
description: Global Ocean mean profile
variables:
thetao: # Temperature ocean surface
preprocessor: prep_profile_1
scripts:
Global_Ocean_mean_profile: &Global_Ocean_mean_profile
script: ocean/diagnostic_profiles.py
diag_profile_2:
description: Regional Ocean mean profile
variables:
thetao: # Temperature ocean surface
preprocessor: prep_profile_2
scripts:
Regional_Ocean_mean_profile: &Regional_Ocean_mean_profile
script: ocean/diagnostic_profiles.py