pyacs.lib.astrotime.decyear2dayno

Convert decimal year to day of year and day fraction.

pyacs.lib.astrotime.decyear2dayno.decyear2dayno(decyear)[source]

Convert decimal year to day of year and day fraction.

Parameters:

decyear (float or array-like) – Decimal year.

Returns:

  • noday (int or ndarray) – Day of year.

  • 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.