pytuflow.CATCHJson.data_types

pytuflow.CATCHJson.data_types#

CATCHJson.data_types(filter_by=None)#

Return the available data types for the given filter.

The available filters are:

  • None - no filter, return all available data types

  • scalar/vector - filter by scalar or vector data types

  • max/min - filter by data types that have maximum or minimum values

  • static/temporal - filter by static or temporal data types

Filters can be combined by delimiting with a forward slash, e.g. 'scalar/max'.

Parameters:

filter_by (str, optional) – The filter to apply to the data types.

Returns:

The list of data types available.

Return type:

list[str]

Examples

>>> res = CATCHJson('./path/to/json')
>>> res.data_types()
['bed level', 'depth', 'vector velocity', 'velocity', 'water level', 'time of peak h']

Return only the data types that have maximum values:

>>> res.data_types('max')
['depth', 'vector velocity', 'velocity', 'water level']