argopy.utils.fill_variables_not_in_all_datasets#
- fill_variables_not_in_all_datasets(ds_collection: List[Dataset], concat_dim: str = 'rows') List[Dataset] [source]#
Add empty variables to dataset so that all the collection have the same
xarray.Dataset.data_vars
and :props:`xarray.Dataset.coords`This is to make sure that the collection of dataset can be concatenated
- Parameters:
ds_collection (List[xarray.Dataset]) โ A list of
xarray.Dataset
concat_dim (str, default='rows') โ Name of the dimension to use to create new variables. Typically, this is the name of the dimension the collection will be concatenated along afterward.
- Return type:
List[xarray.Dataset]