huracanpy.info.time_components#

huracanpy.info.time_components(time, components=('year', 'month', 'day', 'hour'))[source]#

Expand the time variable into year/month/day/hour

Parameters:
  • time (xr.DataArray) – The time series

  • components (iterable[str], optional) – The time components of time to return. Can include any valid attribute of xarray.core.accessor_dt.DatetimeAccessor. Default is year, month, day, hour

Returns:

A DataArray for each requested time component

Return type:

list[xarray.DataArray]