iqm.cpc.core.dataset.turn_variable_to_coordinate#
- iqm.cpc.core.dataset.turn_variable_to_coordinate(dataset, variable_name_to_convert)#
Turns variable of xarray dataset into a coordinate.
The function is added because the native xarray utilities always return a new dataset, so changes don’t stick inside analysis dataset.
- Parameters:
dataset (Dataset) – the dataset where the change will happen
variable_name_to_convert (str) – name of variable which needs to be turned into a coordinate
- Returns:
None
- Return type:
None