earthkit.meteo.solar.julian_day

earthkit.meteo.solar.julian_day(date: DateLike) float
earthkit.meteo.solar.julian_day(date: xarray.DataArray) xarray.DataArray

Compute the Julian day (day of year as a fractional number).

Parameters:

date (datetime.datetime | numpy.datetime64 | xarray.DataArray) – Date/time. Scalar date inputs return a scalar value; xarray.DataArray inputs are processed element-wise.

Returns:

Day of year as a fractional number. January 1st at 00:00 is 0.0.

Return type:

float | xarray.DataArray

Implementations

julian_day() calls one of the following implementations depending on the type of the input arguments:

The function returns an object of the same type as the input arguments.