earth2studio.utils.time.to_time_array#

earth2studio.utils.time.to_time_array(time)[source]#

A general converter for various time iterables into a numpy datetime64 array

Parameters:

time (list[str] | list[datetime] | TimeArray) – Time object iterable

Returns:

Numpy array of datetimes

Return type:

TimeArray

Raises:

TypeError – If element in iterable is not a value time object

Examples using earth2studio.utils.time.to_time_array#

Generative Downscaling

Generative Downscaling

Statistical Inference

Statistical Inference