forked from NCAR/CUPiD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
251 lines (208 loc) · 7.42 KB
/
config.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
################## SETUP ##################
################
# Data Sources #
################
data_sources:
# run_dir is the path to the folder you want
### all the files associated with this configuration
### to be created in
run_dir: .
# nb_path_root is the path to the folder that cupid will
### look for your template notebooks in. It doesn't have to
### be inside run_dir, or be specific to this project, as
### long as the notebooks are there
nb_path_root: ../../nblibrary
######################
# Computation Config #
######################
computation_config:
# default_kernel_name is the name of the environment that
### the notebooks in this configuration will be run in by default.
### It must already be installed on your machine. You can also
### specify a different environment than the default for any
### notebook in NOTEBOOK CONFIG
default_kernel_name: cupid-analysis
# log level sets the level of how verbose logging will be.
# options include: debug, info, warning, error
log_level: 'info'
############# NOTEBOOK CONFIG #############
############################
# Notebooks and Parameters #
############################
# All parameters under global_params get passed to all the notebooks
global_params:
case_name: 'b.e30_beta02.BLT1850.ne30_t232.104'
base_case_name: 'b.e23_alpha17f.BLT1850.ne30_t232.092'
CESM_output_dir: /glade/campaign/cesm/development/cross-wg/diagnostic_framework/CESM_output_for_testing
start_date: '0001-01-01'
end_date: '0101-01-01'
base_start_date: '0001-01-01'
base_end_date: '0101-01-01'
obs_data_dir: '/glade/campaign/cesm/development/cross-wg/diagnostic_framework/CUPiD_obs_data'
lc_kwargs:
threads_per_worker: 1
timeseries:
num_procs: 8
ts_done: [False, False]
overwrite_ts: [False, False]
case_name: ['b.e30_beta02.BLT1850.ne30_t232.104', 'b.e23_alpha17f.BLT1850.ne30_t232.092']
atm:
vars: ['PSL']
derive_vars: []
hist_str: 'cam.h0a'
start_years: [1,1]
end_years: [100,100]
level: 'lev'
lnd:
vars: ['SOILWATER_10CM','FSH_TO_COUPLER']
derive_vars: []
hist_str: 'h0'
start_years: [1,1]
end_years: [100,100]
level: 'lev'
ocn:
vars: []
derive_vars: []
hist_str: 'h.z'
start_years: [1,1]
end_years: [100,100]
level: 'lev'
ice:
vars: ['aice','hi','hs']
derive_vars: []
hist_str: 'cice.h'
start_years: [1,1]
end_years: [100,100]
level: 'lev'
glc:
vars: []
derive_vars: []
hist_str: 'initial_hist'
start_years: [1,1]
end_years: [100,100]
level: 'lev'
rof:
vars: []
derive_vars: []
hist_str: 'h0'
start_years: [1,1]
end_years: [100,100]
level: 'lev'
compute_notebooks:
# This is where all the notebooks you want run and their
# parameters are specified. Several examples of different
# types of notebooks are provided.
# The first key (here infrastructure) is the name of the
# notebook from nb_path_root, minus the .ipynb
infrastructure:
index:
parameter_groups:
none: {}
atm:
Global_PSL_NMSE_compare_obs_lens:
parameter_groups:
none:
regridded_output: False # it looks like output is already on f09 grid, didn't need to regrid time-series file
base_regridded_output: True
validation_path: 'atm/analysis_datasets/fv0.9x1.25/seasonal_climatology/nmse_validation/PSL/'
link_to_ADF:
kernel_name: cupid-infrastructure
parameter_groups:
none:
adf_root: ../../examples/key_metrics/ADF_output/
key_plots: ["Surface_Wind_Stress_ANN_LatLon_Vector_Mean.png", "PRECT_ANN_LatLon_Mean.png", "PS_DJF_SHPolar_Mean.png", "TaylorDiag_ANN_Special_Mean.png"]
external_tool:
tool_name: 'ADF'
vars: ['SST', 'TS', 'SWCF', 'LWCF', 'PRECT', 'TAUX', 'TAUY', 'TGCLDLWP']
plotting_scripts: ["global_latlon_map", "global_latlon_vect_map"]
analysis_scripts: ["amwg_table"]
base_regridded_output: True
glc:
Greenland_SMB_visual_compare_obs:
parameter_groups:
none:
obs_path: 'glc/analysis_datasets/multi_grid/annual_avg/SMB_data'
obs_name: 'GrIS_MARv3.12_climo_1960_1999.nc'
climo_nyears: 40
# rof:
# global_discharge_gauge_compare_obs:
# parameter_groups:
# none:
# analysis_name: ""
# grid_name: 'f09_f09_mosart' # ROF grid name
# rof_start_date: '0091-01-01'
# rof_end_date: '0101-01-01'
# figureSave: False
# global_discharge_ocean_compare_obs:
# parameter_groups:
# none:
# analysis_name: ""
# grid_name: 'f09_f09_mosart' # ROF grid name
# rof_start_date: '0091-01-01'
# rof_end_date: '0101-01-01'
# figureSave: False
ice:
Hemis_seaice_visual_compare_obs_lens:
parameter_groups:
none:
climo_nyears: 35
grid_file: '/glade/campaign/cesm/community/omwg/grids/tx2_3v2_grid.nc'
path_model: '/glade/campaign/cesm/development/cross-wg/diagnostic_framework/CUPiD_model_data/ice/'
lnd:
Global_TerrestrialCouplingIndex_VisualCompareObs:
parameter_groups:
none:
clmFile_h: '.h0.'
fluxnet_comparison: True
obsDir: 'lnd/analysis_datasets/ungridded/timeseries/FLUXNET2015/'
# ocn:
# ocean_surface:
# parameter_groups:
# none:
# Case: b.e23_alpha16b.BLT1850.ne30_t232.054
# savefigs: False
# mom6_tools_config:
# start_date: '0091-01-01'
# end_date: '0101-01-01'
# Fnames:
# native: 'mom6.h.native.????-??.nc'
# static: 'mom6.h.static.nc'
# oce_cat: /glade/u/home/gmarques/libs/oce-catalogs/reference-datasets.yml
########### JUPYTER BOOK CONFIG ###########
##################################
# Jupyter Book Table of Contents #
##################################
book_toc:
# See https://jupyterbook.org/en/stable/structure/configure.html for
# complete documentation of Jupyter book construction options
format: jb-book
# All filenames are notebook filename without the .ipynb, similar to above
root: infrastructure/index # root is the notebook that will be the homepage for the book
parts:
# Parts group notebooks into different sections in the Jupyter book
# table of contents, so you can organize different parts of your project.
# Each chapter is the name of one of the notebooks that you executed
# in compute_notebooks above, also without .ipynb
- caption: Atmosphere
chapters:
- file: atm/Global_PSL_NMSE_compare_obs_lens
- file: atm/link_to_ADF
# - caption: Ocean
# chapters:
# - file: ocn/ocean_surface
- caption: Land
chapters:
- file: lnd/Global_TerrestrialCouplingIndex_VisualCompareObs
- caption: Sea Ice
chapters:
- file: ice/Hemis_seaice_visual_compare_obs_lens
- caption: Land Ice
chapters:
- file: glc/Greenland_SMB_visual_compare_obs
#####################################
# Keys for Jupyter Book _config.yml #
#####################################
book_config_keys:
title: CESM Key Metrics # Title of your jupyter book
# Other keys can be added here, see https://jupyterbook.org/en/stable/customize/config.html
### for many more options