pytuflow.GPKGRL.data_types#
- GPKGRL.data_types(filter_by=None)#
Returns all the available data types (result types) for the given filter.
The
filter_by
is an optional input that can be used to filter the return further. Available filters for theGPKGRL
class are:None
: default - returns all available timespoint
:line
:polygon
: (orregion
)[id]
: returns only data types for the given ID.
- Parameters:
filter_by (str, optional) – The string to filter the data types by.
- Returns:
The available data types.
- Return type:
list[str]
Examples
The below examples demonstrate how to use the
filter_by
argument to filter the returned data types. The first example returns all data types:>>> res = GPKGRL('/path/to/plot_results_RL.gpkg') >>> res.data_types() ['water level', 'flow']
Returning only the
point
data types:>>> res.data_types('point') ['water level']
Return only data types for the channel
FC01.1_R
:>>> res.data_types('rl_point') ['water level']