Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Txy

class pyltm.Txy

Properties

PropertyDescriptionRequired
external_reference
nameOptional name.
scenariosArray of double for values corresponding to time in timestaps.
timestampsArray of strings with timestamps.
unitUnit for values in scenarios.

Methods

load_h5

static load_h5(*args, **kwargs)

Overloaded function.

load_h5(filename: str, group: str) -> tuple

Loads a timeseries from an API compatible H5 file into an API timeseries.

Args: filename (str): Filename to read the H5 data from. group (str): Internal H5 path to where the data should be read.

Returns: tuple(Txy, AttributesList, metadata): External reference object

load_h5(external_reference: pyltm.ExternalDataReference) -> tuple

Loads a timeseries from an API compatible H5 file into an API timeseries.

Args: filename (str): Filename to read the H5 data from. group (str): Internal H5 path to where the data should be read.

Returns: tuple(Txy, AttributesList, metadata): External reference object

save_h5

save_h5(self: pyltm.Txy, filename: str, group: str, attributes: list[tuple[str, str]] = [], metadata: json = None) -> pyltm.ExternalDataReference

Saves an arbitrary timeseries into an API compatible H5 file.

Parameters:

Returns: External reference object

Return type: external_reference (ExternalReference)