result_network.ResultLocations
self) result_network.ResultLocations(
A base class for a network locations (nodes, reaches) or a catchments wrapper class.
Attributes
Name | Description |
---|---|
derived_quantities | A list of available derived quantities. |
group | The TimeSeriesIdGroup associated with these locations. |
locations | A list of location objects (e.g. |
names | A list of location names (e.g. MUIDs). |
quantities | A list of available quantities. |
res1d | The Res1D instance that these locations belong to. |
Methods
Name | Description |
---|---|
read | Read the time series data for all quantities at these locations into a DataFrame. |
to_dataframe | Read the time series data for all quantities at these locations into a DataFrame. |
read
=None, include_derived=False) result_network.ResultLocations.read(column_mode
Read the time series data for all quantities at these locations into a DataFrame.
Parameters
Name | Type | Description | Default |
---|---|---|---|
column_mode | str | ColumnMode(optional) | Specifies the type of column index of returned DataFrame. ‘all’ - column MultiIndex with levels matching TimeSeriesId objects. ‘compact’ - same as ‘all’, but removes levels with default values. ‘timeseries’ - column index of TimeSeriesId objects | None |
include_derived | bool | Include derived quantities. | False |
to_dataframe
result_network.ResultLocations.to_dataframe(=None,
column_mode=False,
include_derived )
Read the time series data for all quantities at these locations into a DataFrame.
Alias for read() method.
Parameters
Name | Type | Description | Default |
---|---|---|---|
column_mode | str | ColumnMode(optional) | Specifies the type of column index of returned DataFrame. ‘all’ - column MultiIndex with levels matching TimeSeriesId objects. ‘compact’ - same as ‘all’, but removes levels with default values. ‘timeseries’ - column index of TimeSeriesId objects | None |
include_derived | bool | Include derived quantities. | False |