polaris.ocean.model.days_per_year
- polaris.ocean.model.days_per_year(calendar)[source]
Get the length of a year in days in a given calendar
- Parameters:
calendar (str) – The name of a CF calendar, as
xarray.DataArray.dt.calendargives it- Returns:
days (float) – The number of days in a year of that calendar
- Raises:
ValueError – If the calendar is not one of those CF defines