zjb.main.data.series.TimeSeries#

class zjb.main.data.series.TimeSeries(**traits)[源代码]#

时间序列类。

该类继承自 SpaceSeries,用于表示随时间变化的空间数据序列。

time_dim#

数据中代表时间的维度。

Type:

int

sample_unit#

采样的时间单位。

Type:

TimeUnit

sample_period#

采样间隔时间。

Type:

float

start_time#

序列的开始时间。

Type:

float

time#

根据开始时间、采样间隔和时间维度计算的时间数组。

Type:

Property

_get_time()[源代码]#

计算并返回时间数组。

返回:

时间序列的 NumPy 数组。

返回类型:

np.ndarray

classmethod from_file(file_path)[源代码]#

从pickle文件加载 TimeSeries 实例。

参数:

file_path (str) – 要加载的文件路径。

返回:

从文件中加载的 TimeSeries 实例。

返回类型:

TimeSeries

save_file(file_path)[源代码]#

将 TimeSeries 实例保存到pickle文件。

参数:

file_path (str) – 要保存文件的路径。