result_network.ResultCatchment
result_network.ResultCatchment(self , catchment, res1d)
Class for wrapping a single ResultData catchment.
Parameters
catchment
IRes1DCatchment
MIKE 1D IRes1DCatchment object.
required
res1d
Res1D
Res1D object the catchment belongs to.
required
Attributes
area
The area of the catchment.
derived_quantities
A list of available derived quantities.
geometry
A geometric representation of the catchment. Requires shapely.
group
The TimeSeriesIdGroup assosciated with this location.
id
The ID of the catchment.
quantities
A list of available quantities.
res1d
The Res1D instance that this location belongs to.
res1d_catchment
DHI.Mike1D.ResultDataAccess.IRes1DCatchment corresponding to this result location.
type
The type of the catchment.
Methods
add_query
Add a query to ResultNetwork.queries list.
get_m1d_dataset
Get IRes1DDataSet object associated with ResultCatchment.
get_query
Get a QueryDataCatchment for given data item.
read
Read the time series data for all quantities at this location into a DataFrame.
add_query
result_network.ResultCatchment.add_query(data_item)
Add a query to ResultNetwork.queries list.
get_m1d_dataset
result_network.ResultCatchment.get_m1d_dataset(m1d_dataitem= None )
Get IRes1DDataSet object associated with ResultCatchment.
Parameters
m1d_dataitem
IDataItem
Ignored for ResultCatchment.
None
Returns
IRes1DDataSet
IRes1DDataSet object associated with ResultCatchment.
get_query
result_network.ResultCatchment.get_query(data_item)
Get a QueryDataCatchment for given data item.
read
result_network.ResultCatchment.read(column_mode= None )
Read the time series data for all quantities at this location into a DataFrame.
Parameters
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