environmentaltools.common.date_to_julian

environmentaltools.common.date_to_julian(dates: list, calendar: str = 'julian') ndarray[source]

Convert datetime objects to Julian dates.

Transforms a list of datetime objects into Julian date numbers based on the specified calendar system.

Parameters:
  • dates (list) – List of datetime objects to convert.

  • calendar (str, optional) – Calendar system to use for conversion. Currently only ‘julian’ is supported. Defaults to ‘julian’.

Returns:

Array of Julian date numbers.

Return type:

np.ndarray