diagnostic.functions.diurnal_cycle#

diurnal_cycle(ds: Dataset)[source]#

Calculate the diurnal cycle of the data. If lat and lon are present, the data is averaged over the spatial dimensions lat and lon.

Parameters:

ds (xr.Dataset) – The data to calculate the diurnal cycle of.

Returns:

The diurnal cycle of the data.

Return type:

xr.Dataset