๐Ÿพ Xarray is now 10 years old! ๐ŸŽ‰

xarray.DataArray.dt.floor

xarray.DataArray.dt.floor#

DataArray.dt.floor(freq)[source]#

Round timestamps downward to specified frequency resolution.

Parameters:

freq (str) โ€“ a freq string indicating the rounding resolution e.g. โ€œDโ€ for daily resolution

Returns:

floor-ed timestamps (same type as values) โ€“ Array-like of datetime fields accessed for each element in values