input.converter_functions.CCLM_to_CF#
- CCLM_to_CF(ds: Dataset) Dataset [source]#
Convert a xarray with raw CCLM data to a ValensPy compliant xarray Dataset.
Flatten the pressure dimension by renaming variables with the pressure level in the name and removing the pressure dimension. Drop the last time step of the dataset.
- Parameters:
ds (xr.Dataset) – The xarray Dataset of CCLM simulation to convert
- Returns:
The CF compliant CCLM model data for the specified variable.
- Return type:
Dataset