imap_processing.spice.time.epoch_to_doy#

imap_processing.spice.time.epoch_to_doy(epoch: ndarray) ndarray[tuple[int, ...], dtype[_ScalarType_co]]#

Convert epoch times to day of year (1-365/366).

Parameters:

epoch (xarray.DataArray) – Time, number of nanoseconds since J2000 with leap seconds included.

Returns:

day_of_year – Day of year (1-365/366) for each epoch value.

Return type:

numpy.ndarray