input.converter_functions.MAR_to_CF#

MAR_to_CF(ds: Dataset) Dataset[source]#

Convert a xarray with raw MAR data to a ValensPy compliant xarray Dataset.

Rename TIME to time and remove the ZTQLEV and ZUVLEV dimensions by selecting the first value of each dimension.

Parameters:

ds (xr.Dataset) – The xarray Dataset of MAR simulation to convert

Returns:

xarray dataset ready for unit conversion

Return type:

Dataset