defining new variables to be copied to the preprocessed dataset
I do not completely understand what happens in lib.copy_vars
and lib.copy_coords
. But if I run the following:
eke_y = preprocess_orca(meshmask, data, model_config='NEST',
update_orca_variables = {
'voeke': {'dims': ['t', 'z_c', 'x_c', 'y_c']},
'vomke': {'dims': ['t', 'z_c', 'x_c', 'y_c']}}).chunk({'t': 1,
'z_c': 2, 'z_l': 2,})
I should find the variables voeke
and vomke
in eke_y
, given they are present in data
... is this right?
Because when I do so, the new variables do not appear in eke_y
.
get_name_dict()
on line 172 does return a dictionary which contains voeke
and vomke
(and all the rest). But I am not sure what happens inside the loop following line 172...