pyacs.lib.astrotime.decyear2cal
Convert decimal year to calendar date.
- pyacs.lib.astrotime.decyear2cal.decyear2cal(decyear)[source]
Convert decimal year to calendar date.
- Parameters:
decyear (float or array-like) – Decimal year.
- Returns:
mday (int or ndarray) – Day of month.
month (int or ndarray) – Month (1-12).
ut (float or ndarray) – Day fraction.
Notes
The input decimal year is assumed to account for leap years; the day of year is the decimal part of decyear times the number of days in the year.