-
Notifications
You must be signed in to change notification settings - Fork 129
/
Copy pathrecipe_ocean_example.yml
566 lines (502 loc) · 16.5 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
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
# ESMValTool
# recipe_ocean_example.yml
---
documentation:
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:
- demo_le
maintainer:
- demo_le
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}
- {dataset: MPI-ESM-LR, 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_horizontal_extrapolate_vertical
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_horizontal_extrapolate_vertical
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
time_average:
prep_map_2: # For Global 2D fields with regridding
custom_order: true
regrid:
target_grid: 1x1
scheme: linear
time_average:
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_horizontal_extrapolate_vertical
time_average:
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.
time_average:
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_horizontal_extrapolate_vertical
time_average:
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
custom_order: true
time_average:
regrid:
target_grid: 1x1
scheme: linear
extract_trajectory:
latitudes: [-5., 5.,]
longitudes: [332.,332.]
number_points: 4 # VERY SLOW with high numbers!
prep_transect_2: # For extracting a transect
custom_order: true
time_average:
regrid:
target_grid: 1x1
scheme: linear
extract_transect: # Pacific Equator
latitude: 0.
longitude: [120., 300.]
prep_transect_3: # For extracting a transect
custom_order: true
time_average:
regrid:
target_grid: 1x1
scheme: linear
extract_transect: # Atlantic Meridional Transect
latitude: [-50.,50.]
longitude: 332.
# --------------------------------------------------
# Zonal and Meridional preprocessors
# --------------------------------------------------
prep_zonal_1: # For creating a global zonal mean
custom_order: true
time_average:
regrid:
target_grid: 1x1
scheme: linear
zonal_statistics:
operator: mean
prep_meridional_1: # For creating a global Meridional mean
custom_order: true
time_average:
regrid:
target_grid: 1x1
scheme: linear
meridional_statistics:
operator: mean
prep_zonal_2: # For creating a regional near-surface zonal mean
custom_order: true
extract_region: &IndianOcean
start_longitude: 30.
end_longitude: 120.
start_latitude: -85.
end_latitude: 30.
extract_volume: &Top500m
z_min: 0.
z_max: 500.
time_average:
regrid:
target_grid: 1x1
scheme: linear
zonal_statistics:
operator: mean
prep_meridional_2: # For creating a Regional Meridional mean
custom_order: true
extract_region: &SouthernOcean
start_longitude: 0.
end_longitude: 360.
start_latitude: -85.
end_latitude: -50.
time_average:
regrid:
target_grid: 1x1
scheme: linear
meridional_statistics:
operator: mean
# --------------------------------------------------
# Depth-profile preprocessors
# --------------------------------------------------
prep_profile_1: # For a global profile
area_statistics:
operator: mean
fx_files: [areacello, ]
prep_profile_2: # For a regional profile
custom_order: true
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
fx_files: [areacello, ]
# --------------------------------------------------
# Depth-Integration preprocessors
# --------------------------------------------------
prep_depth_integration_1: # For a 2D map global profile
depth_integration:
time_average:
diagnostics:
# --------------------------------------------------
# Time series diagnostics
# --------------------------------------------------
diag_timeseries_1:
description: Global Ocean Surface mean timeseries
variables:
tos: # Temperature ocean surface
preprocessor: prep_timeseries_1
fx_files: [areacello, ]
scripts:
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
fx_files: [areacello, ]
scripts:
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
fx_files: [areacello, ]
scripts:
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
fx_files: [areacello, ]
scripts:
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
fx_files: [volcello, ]
scripts:
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
fx_files: [volcello, ]
scripts:
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
fx_files: [volcello, ]
scripts:
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
fx_files: [areacello, volcello]
scripts:
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
fx_files: [areacello, volcello]
scripts:
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
fx_files: [areacello, volcello]
scripts:
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
fx_files: [areacello, volcello]
scripts:
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
fx_files: [areacello, volcello]
scripts:
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
fx_files: [areacello, volcello]
scripts:
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
fx_files: [areacello, volcello]
scripts:
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
fx_files: [areacello, volcello]
scripts:
Regional_Ocean_DepthLayers_AMTslice_regrid_mmmean_transect:
script: ocean/diagnostic_transects.py
# --------------------------------------------------
# Zonal and Meridional diagnostics
# --------------------------------------------------
diag_zonal_1:
description: Plotting a global zonal mean.
variables:
thetao: # Temperature ocean 3D
preprocessor: prep_zonal_1
fx_files: [areacello, volcello]
scripts:
Global_Zonal_mean:
script: ocean/diagnostic_transects.py
diag_meridional_1:
description: Plotting a global meridiona mean.
variables:
thetao: # Temperature ocean 3D
preprocessor: prep_meridional_1
fx_files: [areacello, volcello]
scripts:
Global_Meridional_mean:
script: ocean/diagnostic_transects.py
diag_zonal_2:
description: Indian Ocean near-surface zonal mean
variables:
thetao: # Temperature ocean 3D
preprocessor: prep_zonal_2
fx_files: [areacello, volcello]
scripts:
Global_Zonal_mean:
script: ocean/diagnostic_transects.py
diag_meridional_2:
description: Southern ocean meridiona mean.
variables:
thetao: # Temperature ocean 3D
preprocessor: prep_meridional_2
fx_files: [areacello, volcello]
scripts:
Global_Meridional_mean:
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
fx_files: [areacello, ]
scripts:
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
fx_files: [areacello, ]
scripts:
Regional_Ocean_mean_profile:
script: ocean/diagnostic_profiles.py
# --------------------------------------------------
# Depth integrated diagnostics
# --------------------------------------------------
diag_depthInt_1:
description: Global Ocean Surface mean timeseries
variables:
thetao: # Temperature ocean
preprocessor: prep_depth_integration_1
fx_files: [areacello, ]
scripts:
Global_Ocean_DepthIntegration_map:
script: ocean/diagnostic_maps.py