classes¶
Module classes contains ...
Pythonic classes accessing underlying C++ objects functionalities
TimeSeriesLibrary
¶
Bases: TimeSeriesProvider
Object that acts as a catalogue with various time series available for retrieval
Under construction...
Source code in uchronia/classes.py
datasets_summaries()
¶
Get the summaries of datasets in a library
Returns:
Type | Description |
---|---|
List[str]
|
List[str]: short descriptions of all the datasets in this library |
get_dataset(data_id)
¶
Gets the data from a library for a given identifier.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_id |
str
|
character, one data identifier for the data retrieved. |
required |
Returns:
Name | Type | Description |
---|---|---|
NdTimeSeries |
NdTimeSeries
|
a uni- or multidimensional time series |
Source code in uchronia/classes.py
get_dataset_ids()
¶
Gets the top level data identifiers in a data library (data set)
Returns:
Type | Description |
---|---|
List[str]
|
List[str]: identifiers for the datasets in this library |
sub_identifiers(identifier)
¶
Gets the next level data identifier of a top level ID
Gets the next level data identifier of a top level ID. A collection of time series such as one identified by "streamflows" may have sub-identifiers such as gauge numbers. A single time series in a data library may thus be retrieved by a hierarchical string ID "streamflows.401221" 401221 is a gauge ID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
identifier |
str
|
character, the top level identifier to test again for next level ids |
required |
Returns:
Type | Description |
---|---|
List[str]
|
List[str] sub-identifiers for a root identifier |
Source code in uchronia/classes.py
TimeSeriesMixin
¶
Mixin interface for time series objects of various dimensionality
Source code in uchronia/classes.py
TimeSeriesProvider
¶
Bases: DeletableCffiNativeHandle
TimeSeriesProvider is an interface for objects that can provide time series.
Under construction...